Game Development Community

Player rescue victim

by Mike Downward · in Torque Game Engine · 06/05/2006 (11:42 am) · 1 replies

%a = AIPlayer::spawn("a");

%b = AIPlayer::spawn("b");

%a.mountObject(%b, 0);
%b.setcontrolobject(0);

%a now can't move, or moves in a very jerking fashion.

How could %a move freely while having %b mounted?

#1
06/05/2006 (12:47 pm)
I think the problem is in the collision, you would need to deactivate the collision checks for %b when it is mounted. I think it would just be a matter of calling disableCollision on the object in source when it's mounted. This of course, is assuming you don't want it to be able to collide with anything else when it's mounted... I'm not sure how easy it is to disable collision conditionally (make it just not collide with what it's mounted to).