hintuc_de Posted September 4, 2011 Share Posted September 4, 2011 How to rotate PlayerActor ? Bug #1: vec3 worldDirection = actor.getWorldDirection(); actor.setWorldDirection( worldDirection ); Bug #2: quat worldRotation = actor.getWorldRotation(); actor.setWorldRotation( worldRotation ); Bug #3: vec3 direction = actor.getDirection(); actor.setDirection( direction ); Bug #4: quat rotation = actor.getRotation(); actor.setRotation( rotation ); Link to comment
manguste Posted September 13, 2011 Share Posted September 13, 2011 Players are not intended to be rotated as simple nodes via setWorldDirection() and getDirection(). They are more complex and their viewing direction is different from their real node orientation. There is a set functions specifically designed for rotating players: setViewDirection() setPhiAngle() setThetaAngle() Link to comment
ashwin.sudhir Posted January 12, 2012 Share Posted January 12, 2012 This is really bad design IMO. "Players are not intended to be rotated as simple nodes via setWorldDirection() and getDirection()." If that's the case, Player should not have inherited from Node. Link to comment
manguste Posted February 8, 2012 Share Posted February 8, 2012 I do see your point and agree, but right now it's kind of historical turn of events. 1 Link to comment
Recommended Posts