Game Development Community

When mounting an object on something it no longer collides

by rwillis · in Torque X 2D · 02/24/2008 (11:23 am) · 3 replies

I have an object that I want to mount on the player and be able to collide with objects. The problem I'm getting is: If I mount it to the player then it no longer collides with objects, BUT if I don't mount it to the player then it's collision works fine. ANyone know something I may have missed?

Edit: resolved. See fourth post below.

#1
03/09/2008 (4:46 pm)
Anyone know why the objects I mount on other objects won't collide? Is there a bug with mounted objects colliding?
#2
03/09/2008 (5:31 pm)
This really should work. Are you attaching to a player that is 'spawned'? If so, you might need a spawner for your mounting object that is attached to the player spawner. Otherwise, I would just check on the collision object types, maybe set a break point on your OnCollision delegate to see if it's hitting at all, and if so, what's being processed. If you have a sample project, I can take a look at it.

John K.
#3
03/09/2008 (5:50 pm)
I resolved this. The player is an object of type "Player" and the object I wanted to mount is an object of type "ElectricRod". I fixed it by setting the object that I want to mount to have an EarlyOutObjectType of "Player". Do you know what EarlyOutObjectType is for? Thanks very much.