Jump to content
  • Advertisement

Archived

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

jevdsnny

Character velocity

This topic is 6162 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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!