Game Development Community

Collision to collect objects

by Konrad Carstein · in Torque Game Builder · 06/02/2008 (9:23 pm) · 22 replies

Hi all,
I'm still pretty new to TGB, so please bare with me as I try to explain my difficulty.

1. I have a simple flying object that can fly around and land on another object, a crate for instance. Using the physics collision this wasn't difficult at all. (a few minor issues, but good enough for now).

2. Next I would like to place another object, say a coin on top of the crate for the player to collect. Using the "kill" collision response on the coin did the trick. However....

3. The problem is that the player lands on top of the coin, the coin disappears, but the player is left now "floating" above the crate. If I turn off the physics for the coin, the player just passes through it.

How can I have the player collide with the coin, kill the coin, but not have the player actually respond to hitting the coin?

Thanks so much for any assistance!
Page«First 1 2 Next»
#21
12/09/2008 (9:55 pm)
The best way I have found to do this Bruno, is By using a Trigger. You can use the trigger's collision shape if you want too! Gives you more control. I guess it would be nice to have more control with the "collisions" but the target worked for me!
-nic
#22
12/10/2008 (4:55 am)
Thanks Nic, but to me that falls more into the work-around category, but maybe it is the best work-around out of my possible choices.

Thanks again,
Bruno
Page«First 1 2 Next»