I have a static cube object that activates an event when the player collides with it.
The thing that I want to set up is that only one side of the cube activates the event. So colliding with just one polygon of this cube, so when the player would collide with any other side of the cube, nothing would happen.
I figured the easiest way would be to assign a unique material only to that one polygon of the cube object.
But this still doesn’t work and it activates the event when colliding from any side of the object.
So I have tried to set sensors for 2 materials when colliding with the first one and not colliding with the second one would activate the event.
This still activates the event when colliding from any side.
How should I write the script for this to work and can I specify a negative collision?
collision = cont.sensors['sensor'] collision2 = cont.sensors['Sensor2'] if collision.positive and collision2.positive:
How should I write it for collision2 to be a negative collision?