collisions/gravity help
Blitz3D Forums/Blitz3D Beginners Area/collisions/gravity help
| ||
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 |
| ||
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. |
| ||
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 |
| ||
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. |
| ||
ok that works, thanks a bunch |