phy_inertia

惯性是衡量某物开始或停止移动的难度的指标,因此,此只读变量的值越低,设置实例运动就越容易,而值越高,开始移动则需要更大的力

 

语法:

phy_inertia;

 

返回:

Real (single precision floating point value, or undefined if the instance is not physics enabled)

 

例子:

physics_mass_properties(70, -10, -10, phy_inertia);

上述代码将在保持惯性值的同时更改实例的质量和质心。