Game Development Community

Mounted Object Collisions (not Image)

by Guimo · in Torque Game Engine Advanced · 08/22/2007 (1:51 pm) · 2 replies

Hi,
I have a problem in my game. The designer wants my player to mount a mecha/powerarmor. So I mount the player on the mecha and give control to the mecha.

The problem is that now the mecha detects a collision with the player object and when going in some directions it collides with an imaginary wall and moves diagonally.

Why cant I use an Image. Because the player can customize its character selecting colors or textures. Also the players have teams (red and blue) and the designer wants the game to show those colors and customization. If I mount an image, I cant change textures or materials on that Image to reflect the changes.

So it must be an object. I would like to know if someone has tried to expose the DisableCollision methos to the script. Do you think that can be useful or maybe it can bring a new wave of horrors.

Luck!
Guimo

#1
08/22/2007 (2:06 pm)
Exposing the disableCollision method works but Still have my doubts. I hope this solution is consistent.
Luck!
Guimo
#2
08/23/2007 (4:56 pm)
You don't need to expose it to script really. For these situations simply disable collision for all mounted objects in code. It's usually done in updatePos if I remember. For clues, look in the code to where collisions for a player mounted to an object are disabled and emulate that logic.

If you can't find it in a day or so post again and I'll dig up the requisite code from my game.