SetEntityAttribute()
语法
SetEntityAttribute(#Entity, Attribute, Value)概要
Set the specified attribute value to the given entity.
参数
#Entity The entity to use. Attribute The attribute to set. Value Value of the attribute to set. The following attributes are available: #PB_Entity_Friction : Change the friction value. #PB_Entity_Restitution : Change the restitution value. #PB_Entity_MinVelocity : Set the minimum linear velocity of the entity. As this value isn't stored, it needs to be called every time the entity is moved. #PB_Entity_MaxVelocity : Set the maximum linear velocity of the entity. As this value isn't stored, it needs to be called every time the entity is moved. #PB_Entity_ForceVelocity : Set the linear velocity of the entity. As this value isn't stored, it needs to be called every time the entity is moved. #PB_Entity_LinearSleeping : Change the minimum linear velocity value under which the entity will be sleeping. #PB_Entity_AngularSleeping : Change the minimum angular velocity value under which the entity will be sleeping. #PB_Entity_DeactivationTime: Time to wait (in milliseconds) before putting the entity in sleep mode when the above conditions are met.
返回值
无.
参阅
GetEntityAttribute()
已支持操作系统
所有