Collision point

Blitz3D Forums/Blitz3D Beginners Area/Collision point

Tyler(Posted 2003) [#1]
Is there any way to change the point of collision no a model? Say I want to move the collision "sphere" more towards my character's feet, cause he's a tall fella. Easy? Or do I have to make a sphere, place it approximated where I want the point to be, and just use that as detection instead? Thanks

The reason I ask is, my sphere-to-poly detection is working fine on walls, but my character is attached permenantly to the terrain instead of "walking" on the floor of my building. Any suggestions?


semar(Posted 2003) [#2]
Or do I have to make a sphere, place it approximated where I want the point to be, and just use that as detection instead?

I think so. Don't forget to parent that sphere to the model, and to reset its position once collided, because the sphere stops or slides when collides, the model probably not - well, depends on how do you set collisions.

Bare in mind that if you have scaled your model, then the collision sphere is also scaled. So you may need to change the model's collision range, if you need.

The collision sphere has also a second parameter, which can be used to make the sphere an ellipsoid instead - look in the documentation.

Hope this helps,
Sergio.


Tyler(Posted 2003) [#3]
I want it to be a lot like the demo with the "Mario" walking around the castle, but I can't find a place where he's done anything different than I have, except that his character is squatty and easily fits in a bubble of collision detection.