Game Development Community

Thrown RigidShapes Collide With the Object That Throws Them

by Bryan Edds · in Torque Game Engine · 01/10/2005 (10:47 pm) · 4 replies

Hi guys, I'm attempting to throw my rigid shapes about, and find that without a RigidShape::setCollisionTimeout, I am at a loss for what to do. A lot of times when I throw my RigidShape, it hits there Player who is throwing it, and goes in the opposite direction I've thrown it.

Really, I'm not sure what I can do. Anyone have an idea or a solution?

#1
01/11/2005 (5:17 am)
Find out how setCollisionTimeout is done in other shapes, and add it. Sounds like we will see a nice resource in a few days :)
#2
01/11/2005 (6:27 am)
The best solution, is to do it the same way as item class. So disabling the collision with wat threw it.
#3
01/11/2005 (7:56 am)
Keep it simple, spawn the rigid shape in front of the player with a velocity that heads away from the player. It sounds like you are spawning it right on top of the player which would cause these issues.
#4
01/12/2005 (9:00 pm)
Being the stubborn guy that I am, I wanted to do it the hard way and implement my own version of setCollisionTimeout in the RigidShape class. Needless to say, it's a very different implementation method than what's in Item, but it has the exact same effect!

I should try to get this added to the RigidShape resource soon!