FPhysicsInterface_PhysX

Windows
MacOS
Linux

Inheritance Hierarchy

FGenericPhysicsInterface

FPhysicsInterface_PhysX

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Physics/PhysicsInterfacePhysX.h

Include

#include "Physics/PhysicsInterfacePhysX.h"

Syntax

struct FPhysicsInterface_PhysX : public FGenericPhysicsInterface

Functions

Name Description

Public function Static

void

 

AddActorToAggregate_AssumesLocked

(
    const FPhysicsAggregateHandle_PhysX...,
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

void

 

AddAngularImpulseInRadians_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FVector& InTorque
)

Public function Static

void

 

AddAngularVelocityInRadians_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FVector& InTorque
)

Public function Static

void

 

AddGeometry

(
    const FPhysicsActorHandle& InActor,
    const FGeometryAddParams& InParams,
    TArray< FPhysicsShapeHandle_PhysX >...
)

Public function Static

void

 

AddImpulse_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FVector& InForce
)

Public function Static

void

 

AddImpulseAtLocation_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FVector& InImpulse,
    const FVector& InLocation
)

Public function Static

void

 

AddRadialImpulse_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FVector& InOrigin,
    float InRadius,
    float InStrength,
    ERadialImpulseFalloff InFalloff,
    bool bInVelChange
)

Public function Static

void

 

AddVelocity_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FVector& InForce
)

Public function Static

void

 

AttachShape

(
    const FPhysicsActorHandle_PhysX& I...,
    const FPhysicsShapeHandle_PhysX& I...
)

Public function Static

void

 

CalculateMassPropertiesFromShapeCollection

(
    physx::PxMassProperties& OutProper...,
    const TArray< FPhysicsShapeHandle >...,
    float InDensityKGPerCM
)

Public function Static

bool

 

CanSimulate_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

FPhysicsShap...

 

CloneShape

(
    const FPhysicsShapeHandle_PhysX& I...
)

Public function Static

void

 

CreateActor

(
    const FActorCreationParams& Params,
    FPhysicsActorHandle& Handle
)

Actor interface functions.

Public function Static

FPhysicsAggr...

 

CreateAggregate

(
    int32 MaxBodies
)

Aggregate interface functions.

Public function Static

FPhysicsCons...

 

CreateConstraint

(
    const FPhysicsActorHandle_PhysX& I...,
    const FPhysicsActorHandle_PhysX& I...,
    const FTransform& InLocalFrame1,
    const FTransform& InLocalFrame2
)

Functions.

Public function Static

FPhysicsMate...

 

CreateMaterial

(
    const UPhysicalMaterial* InMat...
)

Material interface functions.

Public function Static

FPhysicsShap...

 

CreateShape

(
    physx::PxGeometry* InGeom,
    bool bSimulation,
    bool bQuery,
    UPhysicalMaterial* InSimpleMat...,
    TArray< UPhysicalMaterial* >&...
)

Shape interface functions.

Public function Static

void

 

DetachShape

(
    const FPhysicsActorHandle_PhysX& I...,
    FPhysicsShapeHandle_PhysX& InShape,
    bool bWakeTouching
)

Public function Static

bool

 

ExecPhysCommands

(
    const TCHAR* Cmd,
    FOutputDevice* Ar,
    UWorld* InWorld
)

Misc.

Public function Static

bool

 

ExecuteOnUnbrokenConstraintReadOnly

(
    const FPhysicsConstraintHandle_Phys...,
    TFunctionRef< void(const FPhysicsCo...
)

Public function Static

bool

 

ExecuteOnUnbrokenConstraintReadWrite

(
    const FPhysicsConstraintHandle_Phys...,
    TFunctionRef< void(const FPhysicsCo...
)

Public function

int32

 

GetAllShapes_AssumedLocked

Public function

int32

 

GetAllShapes_AssumedLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    TArray< FPhysicsShapeHandle_PhysX, ...
)

Public function Static

int32

 

GetAllShapes_AssumedLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    TArray< FPhysicsShapeHandle_PhysX, ...
)

Public function Static

FVector

 

GetAngularVelocity_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

FBox

 

GetBounds_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

FTransform

 

GetComTransform_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

FTransform

 

GetComTransformLocal_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

FPhysScene &...

 

GetCurrentScene

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

float

 

GetCurrentSwing1

(
    const FPhysicsConstraintHandle_Phys...
)

Public function Static

float

 

GetCurrentSwing2

(
    const FPhysicsConstraintHandle_Phys...
)

Public function Static

float

 

GetCurrentTwist

(
    const FPhysicsConstraintHandle_Phys...
)

Public function Static

void

 

GetDriveAngularVelocity

(
    const FPhysicsConstraintHandle_Phys...,
    FVector& OutAngVelocity
)

Public function Static

void

 

GetDriveLinearVelocity

(
    const FPhysicsConstraintHandle_Phys...,
    FVector& OutLinVelocity
)

Public function Static

void

 

GetForce

(
    const FPhysicsConstraintHandle_Phys...,
    FVector& OutLinForce,
    FVector& OutAngForce
)

Public function Static

FPhysicsGeom...

 

GetGeometryCollection

(
    const FPhysicsShapeHandle_PhysX& I...
)

Public function Static

FTransform

 

GetGlobalPose

(
    const FPhysicsConstraintHandle_Phys...,
    EConstraintFrame::Type InFrame
)

Public function Static

FTransform

 

GetGlobalPose_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

FTransform

 

GetKinematicTarget_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

FVector

 

GetLinearVelocity_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

FVector

 

GetLocalInertiaTensor_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

FTransform

 

GetLocalPose

(
    const FPhysicsConstraintHandle_Phys...,
    EConstraintFrame::Type InFrame
)

Public function Static

FTransform

 

GetLocalTransform

(
    const FPhysicsShapeHandle_PhysX& I...
)

Public function Static

FVector

 

GetLocation

(
    const FPhysicsConstraintHandle_Phys...
)

Public function Static

float

 

GetMass_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

float

 

GetMaxAngularVelocity_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

float

 

GetMaxDepenetrationVelocity_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

int32

 

GetNumActorsInAggregate

(
    const FPhysicsAggregateHandle_PhysX...
)

Public function Static

int32

 

GetNumShapes

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

physx::PxRig...

 

GetPxRigidActor_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

physx::PxRig...

 

GetPxRigidActorFromScene_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

To be used only in code that handles PhysX.

Public function Static

physx::PxRig...

 

GetPxRigidBody_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

physx::PxRig...

 

GetPxRigidDynamic_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

FCollisionFi...

 

GetQueryFilter

(
    const FPhysicsShapeHandle_PhysX& I...
)

Public function Static

SIZE_T

 

GetResourceSizeEx

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

ECollisionSh...

 

GetShapeType

(
    const FPhysicsShapeHandle_PhysX& I...
)

Public function Static

FCollisionFi...

 

GetSimulationFilter

(
    const FPhysicsShapeHandle_PhysX& I...
)

Public function Static

float

 

GetSleepEnergyThreshold_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

uint32

 

GetSolverPositionIterationCount_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

uint32

 

GetSolverVelocityIterationCount_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

bool

 

GetSquaredDistanceToBody

(
    const FBodyInstance* InInstanc...,
    const FVector& InPoint,
    float& OutDistanceSquared,
    FVector* OutOptPointOnBody
)

Public function Static

float

 

GetStabilizationEnergyThreshold_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

FTransform

 

GetTransform

(
    const FPhysicsShapeHandle_PhysX& I...
)

Public function Static

FTransform

 

GetTransform_AssumesLocked

(
    const FPhysicsActorHandle& InRef,
    bool bForceGlobalPose
)

Public function Static

void *

 

GetUserData

(
    const FPhysicsShapeHandle_PhysX& I...
)

Public function Static

float

 

GetWakeCounter_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

FVector

 

GetWorldVelocityAtPoint_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FVector& InPoint
)

Public function Static

bool

 

HasKinematicTarget_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

bool

 

IsBroken

(
    const FPhysicsConstraintHandle_Phys...
)

Public function Static

bool

 

IsCcdEnabled

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

bool

 

IsDynamic

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

bool

 

IsGravityEnabled_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

bool

 

IsInScene

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

bool

 

IsKinematic_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

bool

 

IsQueryShape

(
    const FPhysicsShapeHandle_PhysX& I...
)

Public function Static

bool

 

IsRigidBody

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

bool

 

IsShapeType

(
    const FPhysicsShapeHandle_PhysX& I...,
    ECollisionShapeType InType
)

Public function Static

bool

 

IsSimulationShape

(
    const FPhysicsShapeHandle_PhysX& I...
)

Public function Static

bool

 

IsSleeping

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

bool

 

IsStatic

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

bool

 

LineTrace_Geom

(
    FHitResult& OutHit,
    const FBodyInstance* InInstanc...,
    const FVector& InStart,
    const FVector& InEnd,
    bool bTraceComplex,
    bool bExtractPhysMaterial
)

Trace functions for testing specific geometry (not against a world)

Public function Static

bool

 

Overlap_Geom

(
    const FBodyInstance* InBodyIns...,
    const FPhysicsGeometryCollection& ...,
    const FTransform& InShapeTransform,
    FMTDResult* OutOptResult
)

Public function Static

bool

 

Overlap_Geom

(
    const FBodyInstance* InBodyIns...,
    const FCollisionShape& InCollision...,
    const FQuat& InShapeRotation,
    const FTransform& InShapeTransform,
    FMTDResult* OutOptResult
)

Public function Static

void

 

PutToSleep_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Public function Static

void

 

ReleaseActor

(
    FPhysicsActorHandle_PhysX& InHandl...,
    FPhysScene* InScene,
    bool bNeverDeferRelease
)

Public function Static

void

 

ReleaseAggregate

(
    FPhysicsAggregateHandle_PhysX& InA...
)

Public function Static

void

 

ReleaseConstraint

Public function Static

void

 

ReleaseMaterial

(
    FPhysicsMaterialHandle_PhysX& InHa...
)

Public function Static

void

 

ReleaseShape

(
    const FPhysicsShapeHandle_PhysX& I...
)

Public function Static

void

 

SetActorUserData_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    FPhysxUserData* InUserData
)

Public function Static

void

 

SetAngularDamping_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    float InDamping
)

Public function Static

void

 

SetAngularMotionLimitType_AssumesLocked

Public function Static

void

 

SetAngularVelocity_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FVector& InNewVelocity,
    bool bAutoWake
)

Public function Static

void

 

SetBreakForces_AssumesLocked

(
    const FPhysicsConstraintHandle_Phys...,
    float InLinearBreakForce,
    float InAngularBreakForce
)

Public function Static

void

 

SetCanVisualize

(
    const FPhysicsConstraintHandle_Phys...,
    bool bInCanVisualize
)

Public function Static

void

 

SetCcdEnabled_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    bool bIsCcdEnabled
)

Public function Static

void

 

SetCollisionEnabled

(
    const FPhysicsConstraintHandle_Phys...,
    bool bInCollisionEnabled
)

Public function Static

void

 

SetComLocalPose_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FTransform& InComLocalPose
)

Public function Static

void

 

SetConstraintUserData

(
    const FPhysicsConstraintHandle_Phys...,
    void* InUserData
)

Public function Static

void

 

SetDriveAngularVelocity

(
    const FPhysicsConstraintHandle_Phys...,
    const FVector& InAngVelocity
)

Public function Static

void

 

SetDriveLinearVelocity

(
    const FPhysicsConstraintHandle_Phys...,
    const FVector& InLinVelocity
)

Public function Static

void

 

SetDriveOrientation

(
    const FPhysicsConstraintHandle_Phys...,
    const FQuat& InOrientation
)

Public function Static

void

 

SetDrivePosition

(
    const FPhysicsConstraintHandle_Phys...,
    const FVector& InPosition
)

Public function Static

void

 

SetGeometry

(
    const FPhysicsShapeHandle_PhysX& I...,
    physx::PxGeometry& InGeom
)

Public function Static

void

 

SetGlobalPose_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FTransform& InNewPose,
    bool bAutoWake
)

Public function Static

void

 

SetGravityEnabled_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    bool bEnabled
)

Public function Static

void

 

SetIsKinematic_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    bool bIsKinematic
)

Public function Static

void

 

SetIsQueryShape

(
    const FPhysicsShapeHandle_PhysX& I...,
    bool bIsQueryShape
)

Public function Static

void

 

SetIsSimulationShape

(
    const FPhysicsShapeHandle_PhysX& I...,
    bool bIsSimShape
)

Public function Static

void

 

SetKinematicTarget_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FTransform& InNewTarget
)

Public function Static

void

 

SetLinearDamping_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    float InDamping
)

Public function Static

void

 

SetLinearLimit

(
    const FPhysicsConstraintHandle_Phys...,
    float InLimit
)

Public function Static

void

 

SetLinearMotionLimitType_AssumesLocked

Public function Static

void

 

SetLinearVelocity_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FVector& InNewVelocity,
    bool bAutoWake
)

Public function Static

void

 

SetLocalPose

(
    const FPhysicsConstraintHandle_Phys...,
    const FTransform& InPose,
    EConstraintFrame::Type InFrame
)

Public function Static

void

 

SetLocalTransform

(
    const FPhysicsShapeHandle_PhysX& I...,
    const FTransform& NewLocalTransfor...
)

Public function Static

void

 

SetMaskFilter

(
    const FPhysicsShapeHandle_PhysX& I...,
    FMaskFilter InFilter
)

Set the mask filter of a shape, which is an extra level of filtering during collision detection / query for extra channels like "Blue Team" and "Red Team".

Public function Static

void

 

SetMass_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    float InMass
)

Public function Static

void

 

SetMassSpaceInertiaTensor_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    const FVector& InTensor
)

Public function Static

void

 

SetMaterials

(
    const FPhysicsShapeHandle_PhysX& I...,
    const TArrayView< UPhysicalMaterial...
)

Public function Static

void

 

SetMaxAngularVelocity_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    float InMaxAngularVelocity
)

Public function Static

void

 

SetMaxDepenetrationVelocity_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    float InMaxDepenetrationVelocity
)

Public function Static

void

 

SetParentDominates_AssumesLocked

(
    const FPhysicsConstraintHandle_Phys...,
    bool bInParentDominates
)

Public function Static

void

 

SetProjectionEnabled_AssumesLocked

(
    const FPhysicsConstraintHandle_Phys...,
    bool bInProjectionEnabled,
    float InLinearTolerance,
    float InAngularToleranceDegrees
)

Public function Static

void

 

SetQueryFilter

(
    const FPhysicsShapeHandle_PhysX& I...,
    const FCollisionFilterData& InFilt...
)

Public function Static

void

 

SetSendsSleepNotifies_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    bool bSendSleepNotifies
)

Public function Static

void

 

SetSimulationFilter

(
    const FPhysicsShapeHandle_PhysX& I...,
    const FCollisionFilterData& InFilt...
)

Public function Static

void

 

SetSleepEnergyThreshold_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    float InEnergyThreshold
)

Public function Static

void

 

SetSolverPositionIterationCount_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    uint32 InSolverIterationCount
)

Public function Static

void

 

SetSolverVelocityIterationCount_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    uint32 InSolverIterationCount
)

Public function Static

void

 

SetStabilizationEnergyThreshold_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    float InThreshold
)

Public function Static

void

 

SetSwingLimit

(
    const FPhysicsConstraintHandle_Phys...,
    float InYLimit,
    float InZLimit,
    float InContactDistance
)

Public function Static

void

 

SetTwistLimit

(
    const FPhysicsConstraintHandle_Phys...,
    float InLowerLimit,
    float InUpperLimit,
    float InContactDistance
)

Public function Static

void

 

SetUserData

(
    const FPhysicsShapeHandle_PhysX& I...,
    void* InUserData
)

Public function Static

void

 

SetUserData

(
    const FPhysicsMaterialHandle_PhysX ...,
    void* InUserData
)

Public function Static

void

 

SetWakeCounter_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...,
    float InWakeCounter
)

Public function Static

const FBodyI...

 

ShapeToOriginalBodyInstance

(
    const FBodyInstance* InCurrent...,
    const physx::PxShape* InShape
)

Public function Static

bool

 

Sweep_Geom

(
    FHitResult& OutHit,
    const FBodyInstance* InInstanc...,
    const FVector& InStart,
    const FVector& InEnd,
    const FQuat& InShapeRotation,
    const FCollisionShape& InShape,
    bool bSweepComplex
)

Public function Static

void

 

UpdateAngularDrive_AssumesLocked

(
    const FPhysicsConstraintHandle_Phys...,
    const FAngularDriveConstraint& InD...
)

Public function Static

void

 

UpdateConeLimitParams_AssumesLocked

(
    const FPhysicsConstraintHandle_Phys...,
    float InAverageMass,
    const FConeConstraint& InParams
)

Public function Static

void

 

UpdateDriveTarget_AssumesLocked

(
    const FPhysicsConstraintHandle_Phys...,
    const FLinearDriveConstraint& InLi...,
    const FAngularDriveConstraint& InA...
)

Public function Static

void

 

UpdateLinearDrive_AssumesLocked

(
    const FPhysicsConstraintHandle_Phys...,
    const FLinearDriveConstraint& InDr...
)

Public function Static

void

 

UpdateLinearLimitParams_AssumesLocked

(
    const FPhysicsConstraintHandle_Phys...,
    float InLimit,
    float InAverageMass,
    const FLinearConstraint& InParams
)

Public function Static

void

 

UpdateMaterial

(
    const FPhysicsMaterialHandle_PhysX ...,
    UPhysicalMaterial* InMaterial
)

Public function Static

void

 

UpdateTwistLimitParams_AssumesLocked

(
    const FPhysicsConstraintHandle_Phys...,
    float InAverageMass,
    const FTwistConstraint& InParams
)

Public function Static

void

 

WakeUp_AssumesLocked

(
    const FPhysicsActorHandle_PhysX& I...
)

Select Skin
Light
Dark

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