collisions/gravity help

Blitz3D Forums/Blitz3D Beginners Area/collisions/gravity help

chwaga(Posted 2007) [#1]
other than the countcollisions method, is there any way to say "when this collides with that, do this"? also, if i were to put inside the loop "translateentity player, 0,-0.3,0" (with a slide collision on the ground), would the player fall down, and slide downwards in a slope on the ground? (i dont like that effect, so im trying to find a collisions method in which i can say "if the player is not colliding with the ground, loop a translation downwards")

any help is greatly appreciated :D


b32(Posted 2007) [#2]
There is also the EntityCollided command, you can use it to test if a certain object has collided with an object with a specified collisiontype.


chwaga(Posted 2007) [#3]
i know about that...the description makes it sound like it checks if it has in the past, or is currently colliding with the types. that wouldnt work for a gravity system


b32(Posted 2007) [#4]
I think you can use it as you described:

However, another thing you could try is using a LinePick from the entity down to determine if an object is below it.


chwaga(Posted 2007) [#5]
ok that works, thanks a bunch