Game Development Community

Collision with the player

by Fucifer · in Torque Game Engine · 12/29/2006 (6:02 am) · 2 replies

I wondering if player can get collision on a datablock StaticShapeData(BlueBarrel) and the barrel blowup. Do I need change something in the engine or is this a no no.

Now it is very easy to get this on a datablock ItemData(BlueBarrel). Thanks for help.

#1
12/29/2006 (6:43 am)
You should be able to use the players onCollision function to check if the player has collided with the static shape.
#2
12/29/2006 (5:18 pm)
I got this working, turn out there was two function onCollision in the script I was working with. Kept wondering why it was working in one and not the other. Now it working perfectly. Thanks!