#### Archived

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

# bounce effect?

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

## Recommended Posts

I was wondering, I can make things wave and move with cos, sin wavs.. but I can''t figure out how I would do a bounce effect? any links.. suggestiongs?

##### Share on other sites
If you want bouncing balls or something like that you just have to reflect the balls velocity vector against the surface that it hits. If your looking for general stuff, goto some physics sites and I''m sure you will find all sorts of stuff.

Nate Miller
http://nate.scuzzy.net

##### Share on other sites
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.

##### Share on other sites
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

##### Share on other sites
a bounce is vel is ball normal is the walls etc normal
vel = (vel - (normal * (vel.dotproduct(normal))) * 2
this is a perfect bounce usually an object will lose a bit of its enery thpough

1. 1
2. 2
Rutin
23
3. 3
JoeJ
20
4. 4
5. 5

• 28
• 40
• 23
• 13
• 13
• ### Forum Statistics

• Total Topics
631737
• Total Posts
3001949
×