Jump to content

Unigine is crashed (2)


photo

Recommended Posts

Posted

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 );


  • 2 weeks later...
Posted

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:

  • 3 months later...
Posted

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.

  • 4 weeks later...
Posted

I do see your point and agree, but right now it's kind of historical turn of events.

  • Like 1
×
×
  • Create New...