- #1
kachilous
- 15
- 0
I have created a program that simulates an object being thrown off a 50 m building.
Now I would like to implement collision detection. What equations would I need to accomplish this? I am taking Physics right now, so my Physics is a little rusty.
I know I will have to find the time of collision:
timeImpact = (-vy - sqrt((vy*vy) - (2*ay*y)) / (2*.5*ay))
Will I also have to find the object's velocity and position at impact too?
I also decided that the object's coefficient of restitution will be .5.
So I know I will have to factor that in as well.
Any help would be appreciated.
Now I would like to implement collision detection. What equations would I need to accomplish this? I am taking Physics right now, so my Physics is a little rusty.
I know I will have to find the time of collision:
timeImpact = (-vy - sqrt((vy*vy) - (2*ay*y)) / (2*.5*ay))
Will I also have to find the object's velocity and position at impact too?
I also decided that the object's coefficient of restitution will be .5.
So I know I will have to factor that in as well.
Any help would be appreciated.