phy_position_x

The x position of the instance in the physics world.

语法:

phy_position_x;


返回: Real(实数)


描述

This variable can be used to get (or to set) the x position of the instance within the game room physics world. Please note that the physics world may present errors when instances are moved by directly setting this variable as it will interrupt the continuous simulation.


例如:

xx = phy_position_x;
yy = phy_position_y;

The above code stores the instance x and y position in two variables.


上一页: Physics Variables
next: phy_position_y
© Copyright YoYo Games Ltd. 2018 All Rights Reserved