Game Development Community

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
// 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?

#1
09/30/2011 (12:47 pm)
Can you clarify what you are exactly trying to do?