Entity on the ground?

Blitz3D Forums/Blitz3D Programming/Entity on the ground?

EvilMeowChi(Posted 2005) [#1]
This should be an easy question. I want to know if an entity is on the ground so i know whether or not to apply gravity to it. What would be the fastest way to do this?


Sledge(Posted 2005) [#2]
The example I posted here should help.


Rook Zimbabwe(Posted 2005) [#3]
I use collisions and set the entity as on and the ground as 2 and then translateentity to ALWAYS pull the entity down towards the ground unless I want to jump...

RZ


Matty(Posted 2005) [#4]
Look at the driver demo that came with blitz - it does this.


WolRon(Posted 2005) [#5]
Check out my First Person Shooter example code (on the programming tutorial in my sig.). It uses some very simple gravity.


jfk EO-11110(Posted 2005) [#6]
I tried many things. In addition to Collision: When you do a linepick from the players center to the ground, you can calculate the ground offset. Additionaly you can read the pitch yaw roll of the ground under the players feet and decide if you want to apply gravity, do some tricks to force or prevent sliding down slopes etc. It's also useful to control jumping, and even to get the sound for the footsteps on various materials.