PhysX
22 scripting commands. Also as Markdown for agents.
- addForceApplies given force for one frame (essentially an impulse) to unit or given PhysX object at given position.
- addTorqueApplies torque (rotation momentum) to the center of mass of the given object. Torque force is defined as vector [x, y, z] applied in world space.
- attachChildAttaches a child object to a parent, similar to attachTo but instead of a rigid/forced attachment its using a PhysX joint.
- awakeWakes up sleeping PhysX object or puts a PhysX object to sleep. In 2.10 this command can be used on corpses of type `Man` and has no effect on alive…
- brakesDisabledReturns the status of autobrake (see disableBrakes).
- childAttachedGet the child that has been attached via attachChild
- detachChildDetaches previously attached with attachChild object.
- disableBrakesDisables autobrake, which is engaged when vehicle is stationary and stops wheels from rotating freely when vehicle is pushed.
- getCenterOfMassReturns center of mass of an object.
- getMassReturns mass of a PhysX object.
- getPhysicsCollisionFlagReturns the currently set physics collision flags.
- getTowParentGet the vehicle towing the provided one.
- isAwakeReturns resting state of a PhysX (EPE) object. Some EPE objects are deliberately put to sleep by the engine to save resources. This command returns…
- parentAttachedGet the parent of a attachChild attached child.
- setCenterOfMassChanges the center of mass of an object smoothly during the given time (in seconds). A time of zero (or using the alternative syntax) means an…
- setJointDriveAngularVelocityRequires that a swing+twist or SLERP "drive" has been configured in attachChild. Sets the joints target angular velocity (orientation relative to the…
- setJointDriveLinearVelocityRequires that a linear "drive" has been configured in attachChild. Sets the joints target velocity (orientation relative to the joint's own…
- setJointDriveOrientationRequires that a swing+twist or SLERP "drive" has been configured in attachChild. Sets the joints target orientation (relative to the joint's own…
- setJointDrivePositionRequires that a linear "drive" has been configured in attachChild. Sets the joints target position (relative to the joint's own position).
- setMassChanges the mass of a PhysX object. When using the alternative syntax the mass change is gradual during the given time. A time of zero means…
- setPhysicsCollisionFlagSets physics collision flags for PhysX and geometry LODs. Roadway LOD interactions remain.
- setTowParentAllows a vehicle to be towed by another. This loosens the towed vehicle's brakes and turns its steering wheels toward the towing vehicle. Supposed to…