Beta 1 "onCollision" not working right.
by Sam M · in Torque Game Builder · 02/04/2006 (4:22 pm) · 3 replies
Hi, i'm working on something and using some code from the platformer tutorial on TDN to help me. When I add the following function it doesn't run properly.
function t2dSceneObject::onCollision(%srcObj, %dstObj, %srcRef, %dstRef, %time, %normal, %contactCount, %contacts)
In the console I get the message ": Uknown command.". This function works fine on an early version of T2D, but for some reason it's not working right in Beta 1. Am I doing something wrong? This piece of code is on TDN and in the reference documents. Is there a bug? If so is there another way to check if an object is collideing? Any help would be appreciated, Thanks alot.
function t2dSceneObject::onCollision(%srcObj, %dstObj, %srcRef, %dstRef, %time, %normal, %contactCount, %contacts)
In the console I get the message ": Uknown command.". This function works fine on an early version of T2D, but for some reason it's not working right in Beta 1. Am I doing something wrong? This piece of code is on TDN and in the reference documents. Is there a bug? If so is there another way to check if an object is collideing? Any help would be appreciated, Thanks alot.
#2
02/06/2006 (12:12 pm)
Could you post your console.log
#3
: Unknown command
But now i only use %srcObj and %dstObj and it works fine.
02/06/2006 (4:34 pm)
Well I don't have that problem anymore, however whenever the object would pass over another object instead of colliding with it i would just get the following message in my console.log:: Unknown command
But now i only use %srcObj and %dstObj and it works fine.
Torque Owner Sam M