ScriptSpot

Forum topic · General Scripting

really basic rotation (expression controllers)

By karma96 · 2017-11-23

Description

hi guys
i want something super simple but found no tutorials online hope you guys can help

if object A rotation is pass the limit (in this case X - 90 limit) then START rotating object B based on A (half of B)

I've tried to do that but once A rotation passes 90 Object B pops its rotation instead of starting to rotate

hope i made it clear and sorry for my bad english

any help is highly appreciated

Comments (2)

cannot figure it out

karma96 · 2017-11-30

hey barigazy
saw the thread i think it's too complicated for me :(
here's what i'm trying to do

https://gifyu.com/image/pvuN

redbox is linked to the bone_2 and i have assigned a float expression to x rotation of redbox

if(bone2 <= -1.5708,bone2*1,degToRad(90))

right now i want to be able to control amount of rotation when it is over the limit (90)

i think i have to use min - max even though my knowledge is really basic in this area
thanks