Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Body Velocity Unit : pixels per second


jerome
 Share

Recommended Posts

Hello,

 

API documentation says for Class:Body : 

Properties:Name      Type          Descriptionvelocity  Phaser.Point  The velocity in pixels per second sq. of the Body.

per second squared ?

 

Distance par second squared is usually an acceleration unit.

Is velocity really expressed, for some reason, in px/s² ?

 

I need to precompute some time of moving for a sprite from its velocity :

timeToX = distanceToX / sprite.body.velocity.x;
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...