Physics

Physics

Windows
MacOS
Linux
On this page

Actions

Add Angular Impulse in Degrees

Add an angular impulse to a single rigid body. Good for one time instant burst.

Target is Primitive Component

Add Angular Impulse in Radians

Add an angular impulse to a single rigid body. Good for one time instant burst.

Target is Primitive Component

Add Force

Add a force to a single rigid body. This is like a 'thruster'. Good for adding a burst over some (non zero) time. Should be called every frame for the duration of the force.

Target is Primitive Component

Add Force at Location

Add a force to a single rigid body at a particular location in world space. This is like a 'thruster'. Good for adding a burst over some (non zero) time. Should be called every frame for the duration of the force.

Target is Primitive Component

Add Force at Location Local

Add a force to a single rigid body at a particular location. Both Force and Location should be in body space. This is like a 'thruster'. Good for adding a burst over some (non zero) time. Should be called every frame for the duration of the force.

Target is Primitive Component

Add Force to All Bodies Below

Add a force to all rigid bodies below. This is like a 'thruster'. Good for adding a burst over some (non zero) time. Should be called every frame for the duration of the force.

Target is Skeletal Mesh Component

Add Impulse

Add an impulse to a single rigid body. Good for one time instant burst.

Target is Primitive Component

Add Impulse at Location

Add an impulse to a single rigid body at a specific location.

Target is Primitive Component

Add Impulse to All Bodies Below

Add impulse to all single rigid bodies below. Good for one time instant burst.

Target is Skeletal Mesh Component

Add Radial Force

Add a force to all bodies in this component, originating from the supplied world-space location.

Target is Primitive Component

Add Radial Impulse

Add an impulse to all rigid bodies in this component, radiating out from the specified position.

Target is Primitive Component

Add Torque in Degrees

Add a torque to a single rigid body.

Target is Primitive Component

Add Torque in Radians

Add a torque to a single rigid body.

Target is Primitive Component

Get Angular Damping

Returns the angular damping of this component.

Target is Primitive Component

Get Bone Mass

Returns the mass (in kg) of the given bone

Target is Skeletal Mesh Component

Get Center Of Mass

Get the center of mass of a single body. In the case of a welded body this will return the center of mass of the entire welded body (including its parent and children) Objects that are not simulated return (0,0,0) as they do not have COM

Target is Primitive Component

Get Inertia Tensor

Returns the inertia tensor of this component in kg cm^2. The inertia tensor is in local component space.

Target is Primitive Component

Get Linear Damping

Returns the linear damping of this component.

Target is Primitive Component

Get Mass

Returns the mass of this component in kg.

Target is Primitive Component

Get Mass Scale

Returns the mass scale used to calculate the mass of a single physics body

Target is Primitive Component

Get Normalized Compression Scalar

Returns the spring compression as a normalized scalar along spring direction. 0 implies spring is at rest 1 implies fully compressed

Target is Physics Spring Component

Get Physics Angular Velocity in Degrees

Get the angular velocity of a single body, in degrees per second.

Target is Primitive Component

Get Physics Angular Velocity in Radians

Get the angular velocity of a single body, in radians per second.

Target is Primitive Component

Get Physics Linear Velocity

Get the linear velocity of a single body.

Target is Primitive Component

Get Physics Linear Velocity at Point

Get the linear velocity of a point on a single body.

Target is Primitive Component

Get Skeletal Center Of Mass

Returns the center of mass of the skeletal mesh, instead of the root body's location

Target is Skeletal Mesh Component

Get Spring Current End Point

Returns the spring current end point in world space.

Target is Physics Spring Component

Get Spring Direction

Returns the spring direction from start to resting point

Target is Physics Spring Component

Get Spring Resting Point

Returns the spring resting point in world space.

Target is Physics Spring Component

Get Walkable Slope Override

Returns the slope override struct for this component.

Target is Primitive Component

Is Any Rigid Body Awake

Returns if any body in this component is currently awake and simulating.

Target is Primitive Component

Is Any Simulating Physics

Returns whether the specified body is currently using physics simulation

Target is Scene Component

Is Gravity Enabled

Returns whether this component is affected by gravity. Returns always false if the component is not simulated.

Target is Primitive Component

Is Simulating Physics

Returns whether the specified body is currently using physics simulation

Target is Scene Component

Put Rigid Body to Sleep

Force a single body back to sleep.

Target is Primitive Component

Raycast Single

Raycast Single

Target is Geometry Collection Actor

Scale by Moment Of Inertia

Scales the given vector by the world space moment of inertia. Useful for computing the torque needed to rotate an object.

Target is Primitive Component

Set All Mass Scale

Change the mass scale used fo all bodies in this component

Target is Primitive Component

Set All Physics Angular Velocity in Degrees

Set the angular velocity of all bodies in this component.

Target is Primitive Component

Set All Physics Angular Velocity in Radians

Set the angular velocity of all bodies in this component.

Target is Primitive Component

Set All Physics Linear Velocity

Set the linear velocity of all bodies in this component.

Target is Primitive Component

Set All Use CCD

Set whether all bodies in this component should use Continuous Collision Detection

Target is Primitive Component

Set Angular Damping

Sets the angular damping of this component.

Target is Primitive Component

Set Body Notify Rigid Body Collision

Changes the value of bNotifyRigidBodyCollision for a given body

Target is Skeletal Mesh Component

Set Center Of Mass

Set the center of mass of a single body. This will offset the physx-calculated center of mass. Note that in the case where multiple bodies are attached together, the center of mass will be set for the entire group.

Target is Primitive Component

Set Constraint Mode

Sets the constraint mode of the component.

Target is Primitive Component

Set Enable Gravity

Enables/disables whether this component is affected by gravity. This applies only to components with bSimulatePhysics set to true.

Target is Primitive Component

Set Linear Damping

Sets the linear damping of this component.

Target is Primitive Component

Set Mass Override in Kg

Override the mass (in Kg) of a single physics body. Note that in the case where multiple bodies are attached together, the override mass will be set for the entire group. Set the Override Mass to false if you want to reset the body's mass to the auto-calculated physx mass.

Target is Primitive Component

Set Mass Scale

Change the mass scale used to calculate the mass of a single physics body

Target is Primitive Component

Set Notify Rigid Body Collision

Changes the value of bNotifyRigidBodyCollision

Target is Primitive Component

Set Notify Rigid Body Collision Below

Changes the value of bNotifyRigidBodyCollision on all bodies below a given bone

Target is Skeletal Mesh Component

Set PhysicalMaterial Override

Changes the current PhysMaterialOverride for this component. Note that if physics is already running on this component, this will not alter its mass/inertia etc, it will only change its surface properties like friction.

Target is Primitive Component

Set Physics Angular Velocity in Degrees

Set the angular velocity of a single body. This should be used cautiously - it may be better to use AddTorque or AddImpulse.

Target is Primitive Component

Set Physics Angular Velocity in Radians

Set the angular velocity of a single body. This should be used cautiously - it may be better to use AddTorque or AddImpulse.

Target is Primitive Component

Set Physics Linear Velocity

Set the linear velocity of a single body. This should be used cautiously - it may be better to use AddForce or AddImpulse.

Target is Primitive Component

Set Physics Max Angular Velocity in Degrees

Set the maximum angular velocity of a single body.

Target is Primitive Component

Set Physics Max Angular Velocity in Radians

Set the maximum angular velocity of a single body.

Target is Primitive Component

Set Simulate Physics

Sets whether or not a single body should use physics simulation, or should be 'fixed' (kinematic). Note that if this component is currently attached to something, beginning simulation will detach it.

Target is Primitive Component

Set Use CCD

Set whether this component should use Continuous Collision Detection

Target is Primitive Component

Set Walkable Slope Override

Sets a new slope override for this component instance.

Target is Primitive Component

Wake All Rigid Bodies

Ensure simulation is running for all bodies in this component.

Target is Primitive Component

Wake Rigid Body

'Wake' physics simulation for a single body.

Target is Primitive Component

Categories

Components

Components

Material

Material

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback