Hi,
how can I test if my character (represented by bullet's kinematic character controller) fall from a great height let say for example fall from a top of a building?
How can i approach detecting the said event?
Detect height of fall
-
- Posts: 22
- Joined: Mon Dec 20, 2010 7:13 pm
Re: Detect height of fall
do you really need the height, or you just need a way to calculate damage?
If you need to calculate damage you should get the velocity of impact.
If you need the height of the fall I think you should track it manually.
If you need to calculate damage you should get the velocity of impact.
If you need the height of the fall I think you should track it manually.
-
- Posts: 237
- Joined: Tue Jun 29, 2010 10:27 pm
Re: Detect height of fall
Yeah I would also say that just getting the velocity/force of impact would be a simpler and more realistic measure for damage or "splatting" effects. That way it's generic for any kind of falling (even if only falling from small height but accelerated by some force) and you don't have to manually keep track of the height at the start of a fall (and then perhaps having to update that if the object bounces/hits an object on the way down).
-
- Posts: 15
- Joined: Fri Nov 19, 2010 8:58 am
Re: Detect height of fall
Ok, so how do i dtermine velocity of impact then?serengeor wrote:do you really need the height, or you just need a way to calculate damage?
If you need to calculate damage you should get the velocity of impact.
If you need the height of the fall I think you should track it manually.
im sory im kinda new to this.
-
- Posts: 15
- Joined: Fri Nov 19, 2010 8:58 am
Re: Detect height of fall
anyone?
im searching thru forums and i cant seem to find the correct search word on how to compute the force of impact.
im searching thru forums and i cant seem to find the correct search word on how to compute the force of impact.