• Advertisement

Archived

This topic is now archived and is closed to further replies.

Character velocity

This topic is 5978 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The velocity of a character (MyPlayer->Info.Velocity.x or MyPlayer->Info.Velocity.z) is incorrectly reported when the character is colliding with an object. Correctly, the velocity should be reported as 0, since the player is not moving. It currently reports whatever velocity it would have if it were not colliding. This poses two problems: theres no way to tell if a character is moving, and there is no way to properly update "world coordinates" of a player if you are building a virtual world bigger than the basic wrapping map.

Share this post


Link to post
Share on other sites
Advertisement
The velocity of objects is never changed by the engine. It''s up to the application to control.

The velocity is how fast the object WANTS to move, not how fast it actually moved after collision. Sliding along walls or off other objects would be impossible if you reset the velocity to 0. That would make it stop instantly when you hit something.

Chris

Share this post


Link to post
Share on other sites
Then, I guess I need to know how to access how fast the object is actually moving at any given time.

Share this post


Link to post
Share on other sites

  • Advertisement