Need advice about one way collision
by Andrea Farid Marsili · in iTorque 2D · 09/30/2011 (8:10 am) · 1 replies
Here the code from platform tutorial from TDN-Torque Game Builder
I want to detect one way collision but I don't know how to do it...could someone help me?
// in air and hits platform with head
if(%normalY == 1){
%this.airborne = true;
%this.setLinearVelocityX(0);
%this.setConstantForceY(100);
%this.setLinearVelocityY(%yVelocity);
return;
}I want to detect one way collision but I don't know how to do it...could someone help me?
Torque 3D Owner Masaki Oyata