Returns whether the instance is a kinematic body or not.



返回: 布尔值


This read-only variable will return true if the instance is classed as being a kinematic object, or false if it is not. A kinematic instance is one that has infinite mass (a density of 0) but can move. So, to make an instance kinematic, you would first create a static instance and then set one or more of the instance variables related to movement (ie: phy_speed_x).


if !phy_kinematic
   phy_speed_x = 5;

The above code checks to see if the instance is kinematic and if it is not, it sets the horizontal speed to 5.

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