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!
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!
#22
Thanks again,
Bruno
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
Torque Owner Nic Biondi
Default Studio Name
-nic