Namespace of functions used to move objects in various ways.
- Source:
Methods
-
<static> applyForce(dynObject, position, forceVector)
-
Apply force to a dynamic object. Force is ineffective against locked, semi-locked and permanetly static objects.
Parameters:
Name Type Description dynObject
PhSim.DynObject position
Vector forceVector
Vector - Source:
-
<static> rotate(dynObject, angle, point)
-
Parameters:
Name Type Description dynObject
PhSim.DynObject angle
Number point
Vector - Source:
-
<static> rotateTowards(dynObject, point)
-
Rotate dynamic object towards point
Parameters:
Name Type Description dynObject
PhSim.DynObject point
Vector - Source:
-
<static> setAngle(dynObject, angle)
-
Parameters:
Name Type Description dynObject
PhSim.DynObject angle
Number - Source:
-
<static> setPosition(o, position)
-
Apply a transformation to a dynamic object. Setting positions is ineffective against locked and permanetly static objects.
Parameters:
Name Type Description o
PhSim.DynObject position
Vector - Source:
-
<static> setVelocity(dynObject, velocityVector)
-
Apply velocity to a dynamic object. Velocity does not effect locked, semi-locked objects or static objects.
Parameters:
Name Type Description dynObject
PhSim.DynObject velocityVector
Vector - Source:
-
<static> translate(o, translationVector)
-
Apply a transformation to a dynamic object. Transformation does not move locked objects. However, it moves semi-locked objects and static objects.
Parameters:
Name Type Description o
PhSimObject translationVector
Vector - Source: