Page 1 of 1

rotation help

Posted: 22 Apr 2015, 13:02
by hgoodsir
hi all,
currently have a device that is giving me rotation values -360 to 360 but want to convert to make the object rotate without
jumping back so the rotation is continuousness. have attached clip to show the issue.

https://drive.google.com/file/d/0B1yZCF ... sp=sharing

Re: rotation help

Posted: 22 Apr 2015, 14:50
by lerou
hi,

don't use absolute values, use deltas of your incoming angles (current value minus value from last frame) and sum them up.

cheers,
rou

Re: rotation help

Posted: 22 Apr 2015, 15:43
by chriss0212
hi,

are you using a math effect between device input and rotation? if so, set modulo to 360.

greetz

christian

Re: rotation help

Posted: 23 Apr 2015, 14:12
by hgoodsir
Thanks guys this seem to work better the modulo :)