- Home /
Question by
ShadowBroker · Apr 17, 2011 at 07:50 PM ·
axisboneemulation
Emulate an axis
Everybody who has played Halo or CoD knows, that when you look up, the arm also goes up. But I encountered a problem because of the arm axis. I need to emulate another axis to rotate the arm right up and down. Here's an example:
Is it possible to do that?
Comment
Best Answer
Answer by Bunny83 · Apr 17, 2011 at 10:59 PM
I would just use RotateAround in LateUpdate on the Transform of your arm bone.
var bone : Transform;
function LateUpdate() { bone.RotateAround(bone.position,transform.right,degree); }
this is supposed to be on the player so right is relative to the players view.
Yeah it works :D I would set this to the accepted answer twice if I could^^