# PhysX (scripting commands)

- [addForce](../../commands/addForce.md): Applies given force for one frame (essentially an impulse) to unit or given PhysX object at given position.
- [addTorque](../../commands/addTorque.md): Applies 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.
- [attachChild](../../commands/attachChild.md): Attaches a child object to a parent, similar to attachTo but instead of a rigid/forced attachment its using a PhysX joint.
- [awake](../../commands/awake.md): Wakes 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 units.
- [brakesDisabled](../../commands/brakesDisabled.md): Returns the status of autobrake (see disableBrakes).
- [childAttached](../../commands/childAttached.md): Get the child that has been attached via attachChild
- [detachChild](../../commands/detachChild.md): Detaches previously attached with attachChild object.
- [disableBrakes](../../commands/disableBrakes.md): Disables autobrake, which is engaged when vehicle is stationary and stops wheels from rotating freely when vehicle is pushed.
- [getCenterOfMass](../../commands/getCenterOfMass.md): Returns center of mass of an object.
- [getMass](../../commands/getMass.md): Returns mass of a PhysX object.
- [getPhysicsCollisionFlag](../../commands/getPhysicsCollisionFlag.md): Returns the currently set physics collision flags.
- [getTowParent](../../commands/getTowParent.md): Get the vehicle towing the provided one.
- [isAwake](../../commands/isAwake.md): Returns resting state of a PhysX (EPE) object. Some EPE objects are deliberately put to sleep by the engine to save resources. This command returns true when object is simulating and false when it is put to sleep.
- [parentAttached](../../commands/parentAttached.md): Get the parent of a attachChild attached child.
- [setCenterOfMass](../../commands/setCenterOfMass.md): Changes 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 immediate change.
- [setJointDriveAngularVelocity](../../commands/setJointDriveAngularVelocity.md): Requires that a swing+twist or SLERP "drive" has been configured in attachChild. Sets the joints target angular velocity (orientation relative to the joint's own orientation).
- [setJointDriveLinearVelocity](../../commands/setJointDriveLinearVelocity.md): Requires that a linear "drive" has been configured in attachChild. Sets the joints target velocity (orientation relative to the joint's own orientation).
- [setJointDriveOrientation](../../commands/setJointDriveOrientation.md): Requires that a swing+twist or SLERP "drive" has been configured in attachChild. Sets the joints target orientation (relative to the joint's own orientation).
- [setJointDrivePosition](../../commands/setJointDrivePosition.md): Requires that a linear "drive" has been configured in attachChild. Sets the joints target position (relative to the joint's own position).
- [setMass](../../commands/setMass.md): Changes 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 immediate change.
- [setPhysicsCollisionFlag](../../commands/setPhysicsCollisionFlag.md): Sets physics collision flags for PhysX and geometry LODs. Roadway LOD interactions remain.
- [setTowParent](../../commands/setTowParent.md): Allows 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 be used together with a rope connecting both vehicles.
