SetEntityAttribute()
Syntax
SetEntityAttribute(#Entity, Attribute, Value)Description
Set the specified attribute value to the given entity.
Parameters
#Entity The entity to use. Attribute 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. #PB_Entity_DisableContactResponse: Disable or enable the physic contacts for this entity. Value can be #True or #False.Value Value of the attribute to set.
Return value
None.
See Also
GetEntityAttribute()
Supported OS
All