There is a bug with the OR condition.
- The event’s condition is an OR with a boolean and a object’s physics velocity checks as conditions.
- The event’s action is to get the object’s X position.
If only the boolean condition is true, then the object’s position is returned incorrectly as 0. Otherwise it’s correct.
The object has Physics 2 behaviour. It’s kinematic, but the same issue occurs if it’s dynamic with gravity scale 0.
Here’s the scene editor object position:
Here are the events :
Here is a screen snip of none of the conditions being met :
Here is a screen snip of the boolean condition being met (space bar was pressed). Spot the incorrect Player.X() value :
Here is a screen snip of the velocity condition being met (left shift was pressed) :
Here’s a screen snip of both conditions being met :
Here’s a link to my test project.