Stopping an entity if the child hits

Blitz3D Forums/Blitz3D Programming/Stopping an entity if the child hits

slenkar(Posted 2004) [#1]
Hi I have collisions set up on a ship with an entityradius of 2.
It has 2 seperate guns on the front with no collisions (because they would go off on their own if they did collide with something)

But when the ship crashes headfirst into something the guns go straight through the object and shoot making bullets appear inside the object instead of hitting it from the outside.

So, how can I make it that the guns collisions make the parent ship slide around the obstacle?



Unfortunetly there is no entityradiusZ() command (hint hint) so changing the radius would throw off collisions altogether.


jfk EO-11110(Posted 2004) [#2]
the only way I know is to reposition the ship relative to the cannon after a collision. It works for me when the players head hits the ceil, tho the head (camera) is a child of the player.