Game Development Community

Collision callback without physics

by Damian Sloane · in Torque Game Builder · 10/07/2007 (4:32 am) · 4 replies

I'll try and keep this short and simple (because it should be a simple thing to do).

Basically trying to implement an object pickup system in a platform game. So the character jumps through an object and it triggers a callback function without affecting the players movement.

To me it seems like a simple matter of ticking "Send Collision & Receive Collision & Callback" boxes on the object being pickd up and unticking "Send Physics & Receive Physics" boxes. However as soon as I untick the physics boxes I no longer receive a collision callback.

I've tried this both in the Level Builder and creating an object from scratch in TorqueScript with no luck.

Any help gratefully appreciated!

#1
10/07/2007 (7:18 am)
Damian, do it in script and post what you're doing, because it's generally a very straightforward thing.
#2
09/27/2009 (8:24 pm)
Did anyone find a solution to this? I have pickup items on a tilemap and I need my player to pickup them up without the collision affecting the player's movement.
#3
09/28/2009 (10:43 am)
Embarrassingly enough, I've never managed to figure this one out, so instead, I create a t2dTrigger object and use the onEnter callback instead, then I'll put my sprite in the same place and turn off collision, physics and callbacks on it to preserve resources.

I'd love to hear how to actually do this though.
#4
09/30/2009 (7:47 am)
I am facing the same problem. It seems collision does not work without the physics enabled. Could someone give a solution to this issue without having workarounds. Thanks