PhysicsSetDynamicObjectIsMoving
Physics
PhysicsSetDynamicObjectIsMoving Reference
#include "TrueAxis.bi"
Description:
- Call this function to flag a dynamic object as moving.
- If a dynamic object is already moving, it will normally already be flagged as moving.
- This is the same as calling DynamicObjectSetToMoving.
- Dynamic objects can either be at rest or moving.
- The physics simulation keeps a list of moving objects.
- Only moving objects will be updated.
- If an at rest object is collided with, it will be added to the moving list.
- When an object comes to rest, it is removed from the moving list.
- It may be often necessary to manually set object to be moving.
- If an object is at rest, calling a function such as DynamicObjectApplyImpulse will not have an effect with out calling PhysicSetDynamicObjectIsMoving as well.
- Calling PhysicsSetDynamicObjectIsMoving each frame will prevent an object from coming to rest.
- Parameter: Priority
- Either SET_MOVING_PRIORITY_LOW or SET_MOVING_PRIORITY_HIGH.
- If set to a low priority and if if there are too many other moving objects, then this object will not be set moving.
- If set to a high priority and if there are too many other moving objects, then the slowest moving object will be put to sleep and this one activated.
- The default value is SET_MOVING_PRIORITY_LOW.
- Functions:
- declare sub PhysicsSetDynamicObjectIsMoving(byval pObj as const DynamicObject ptr, byval priority as ePHYSICS_MOVING_PRIORITIES = SET_MOVING_PRIORITY_LOW)
Copyright © 2015
Created with the Freeware Edition of HelpNDoc: Easily create Web Help sites