Jump to content

Unigine is crashed (2)


photo

Recommended Posts

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
  • 2 weeks later...
  • 3 months later...

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
  • 4 weeks later...
×
×
  • Create New...