colliding issues
by Alebrije Estudios · in Torque Game Builder · 11/26/2009 (6:52 pm) · 3 replies
Hey guys I have this tricky code. I say tricky because is so simple and it doesnt workkkkkkk..
function bajaCLass::onLevelLoaded (%this){
%this.setCollisionPhysics(1,0);
%this.setCollisionActive(1,0);
%this.setCollisionLayers("1");
}
function baltaClass::onLevelLoaded (%this){
%this.setCollisionPhysics(1,1);
%this.setCollisionActive(1,1);
%this.setCollisionLayers("2");
}
$ball.setCollisionLayers("2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31");
-----------------------------------------------
It doesnt sends or recevies, physics or collisions, with "bajaclass" objects which is ok. But it doesn't collide with the "baltaclass" objects (neither in physics nor in callbacks)...
In the other hand the $ball object does collide with objects that hace all the collsionlayers available.
have any ideas?????
function bajaCLass::onLevelLoaded (%this){
%this.setCollisionPhysics(1,0);
%this.setCollisionActive(1,0);
%this.setCollisionLayers("1");
}
function baltaClass::onLevelLoaded (%this){
%this.setCollisionPhysics(1,1);
%this.setCollisionActive(1,1);
%this.setCollisionLayers("2");
}
$ball.setCollisionLayers("2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31");
-----------------------------------------------
It doesnt sends or recevies, physics or collisions, with "bajaclass" objects which is ok. But it doesn't collide with the "baltaclass" objects (neither in physics nor in callbacks)...
In the other hand the $ball object does collide with objects that hace all the collsionlayers available.
have any ideas?????
About the author
Alebrije Estudios is a Mex. independent vid game studio. We have 3 main lines of business: in-house developments w/ projects published in the iTunes St., FB, & looking 4 Publisher; advergames; & outsourcing of creative processes. @mike_alebrije
Torque Owner Pubily