Jump to content
Roland

Elasticity not documented

Recommended Posts

These guys are not documented

 

 

virtual void Entity::SetElasticity(const float elasticity);//lua

virtual float Entity::GetElasticity();//lua

Share this post


Link to post

If I had to guess, it's referring to Elastic Collisions and not rubber bands.

 

https://en.wikipedia.org/wiki/Elastic_collision

 

For example, a car would have a small elastic coefficient as when cars crash, they usually go in the same direction together. Where as a bouncy ball would have a higher coefficient.

 

Id guess this would be a value between 0 and 1. Where 1 is 100% elastic and 0 is non elastic.

 

-----------

 

Looking at the physics API leadwerks uses,

 

http://newtondynamics.com/wiki/index.php5?title=NewtonMaterialSetDefaultElasticity

 

You can see it is a value between 0 and 1.

  • Upvote 1

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...