Original Post
🔒 Locked
bounce effect?
Advertisement
Bounces are determined by the velocity of the object and the surface it hits against. Find the tangent of the point on this surface that the object hits (if it''s not flat) and then make it just go in a mirrored velocity off of that object. All objects will also travel in a parabolic arc (if there''s no wind/other unbalanced forces)... Simple enough to find the vectors of the direction using some simple physics and geometery.
S.
S.
If you want to give your surfaces some various rebonding effects, you just have to give them a simple dumping value ranged from 0 to 1 unless you want to make your object to go higher (dumping >1). Then when you have calculated the new velocity vector you multiply each coordonate by the dumping value of your surface.
If you want more complex effects, you can give a different dumping value to each coordonate (I think).
My Web Page
If you want more complex effects, you can give a different dumping value to each coordonate (I think).
My Web Page
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement