multi radius colisions

Blitz3D Forums/Blitz3D Programming/multi radius colisions

D4NM4N(Posted 2004) [#1]
how do you make a child entity with a colisionsphere effect the parent, ie changes the position of the parent. I have tried it and the child obeys the collision but the parent does not change until it hits itself.
Imagine a man with a BODY and two FEET. the body just continues to move down until the feet touch his arse. My actual problem is a little more complicated but this is the basic of it. Alternatively is it possible for one mesh to have multiple colission spheres and is there a way of changing its position in the mesh, or is it locked to the axis?


Jeremy Alessi(Posted 2004) [#2]
You'd have to code a system to control this to get it like what you seem to want. It's not built into Blitz.


Paul "Taiphoz"(Posted 2004) [#3]
use the distance from the shild to the parent. and do your own collision routine.

this will let you do what you want.

if distance(parent,child)=< parent\radius+child\radius
we have hit each other,
lets move the parent with a global flag, and then move the child.
end if