ang_for_bone bug

Posted By: Puppeteer

ang_for_bone bug - 09/28/12 13:21

Sample project

In specific situations the usage of ang_for_bone causes an entity to be rendered with in wrong orientation.

Bug found here
Posted By: jcl

Re: ang_for_bone bug - 09/30/12 15:42

Originally Posted By: Manual
Don't change entity angles more than once per frame. This could otherwise cause problems with intermediate rotations because Euler angles are internally converted to a rotation matrix resp. a quaternion.

http://manual.3dgamestudio.net/aentity-pan.htm

Exactly that happened in your sample project. ang_for_bone updates the entity rotation which you've set to 0. Setting it to a different angle afterwards had then no effect.
© 2024 lite-C Forums