Navigation
API > API/Runtime > API/Runtime/Chaos
| Name | FContactPairModifier |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ContactModification.h |
| Include Path | #include "Chaos/ContactModification.h" |
Syntax
class FContactPairModifier
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Chaos/ContactModification.h | |||
FContactPairModifier
(
FPBDCollisionConstraint* InConstraint, |
Chaos/ContactModification.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Constraint | FPBDCollisionConstraint * | Chaos/ContactModification.h | ||
| Modifier | FCollisionContactModifier * | Chaos/ContactModification.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ConvertToNonProbe() |
Convert the constraint from probe to a regular physical collision | Chaos/ContactModification.h | |
void ConvertToProbe () |
Convert the constraint between this pair of bodies into a probe. | Chaos/ContactModification.h | |
void Disable() |
Disable all contact points for this pair of bodies. | Chaos/ContactModification.h | |
void Enable () |
Enables all contact points for this pair of bodies. | Chaos/ContactModification.h | |
const FImplicitObject * GetContactGeometry
(
int32 ParticleIdx |
Chaos/ContactModification.h | ||
int32 GetDeepestContactIndex() |
Chaos/ContactModification.h | ||
FReal GetDynamicFriction() |
Chaos/ContactModification.h | ||
const FConstImplicitObjectRef GetImplicit
(
int32 ParticleIdx |
Get one of the particle's implicit objects. | Chaos/ContactModification.h | |
FReal GetInvInertiaScale
(
int32 ParticleIdx |
Chaos/ContactModification.h | ||
FReal GetInvMassScale
(
int32 ParticleIdx |
Chaos/ContactModification.h | ||
bool GetIsCCD () |
Whether this contact was generated from a CCD hit. | Chaos/ContactModification.h | |
bool GetIsInitialContact() |
Chaos/ContactModification.h | ||
bool GetIsProbe() |
Return true if this constraint is a probe type | Chaos/ContactModification.h | |
int32 GetNumContacts() |
Chaos/ContactModification.h | ||
FGeometryParticleHandle * GetOtherParticle
(
FGeometryParticleHandle* Particle |
Get the other particle in the constraint - if the input particle isn't in the constraint, get null | Chaos/ContactModification.h | |
FVec3 GetParticleAngularVelocity
(
int32 ParticleIdx |
Chaos/ContactModification.h | ||
TVec2< FGeometryParticleHandle * > GetParticlePair() |
Retrieve physics handles for particles in contact pair. | Chaos/ContactModification.h | |
FVec3 GetParticlePosition
(
int32 ParticleIdx |
Chaos/ContactModification.h | ||
FRotation3 GetParticleRotation
(
int32 ParticleIdx |
Chaos/ContactModification.h | ||
FVec3 GetParticleVelocity
(
int32 ParticleIdx |
Chaos/ContactModification.h | ||
FReal GetRestitution() |
Chaos/ContactModification.h | ||
FReal GetRestitutionThreshold() |
Chaos/ContactModification.h | ||
FReal GetSeparation
(
int32 ContactPointIdx |
Chaos/ContactModification.h | ||
const FShapeInstance * GetShape
(
int32 ParticleIdx |
Get one of the particle's shapes. | Chaos/ContactModification.h | |
TVec2< const FPerShapeData * > GetShapePair() |
Get shape pair from constraint. | Chaos/ContactModification.h | |
FRigidTransform3 GetShapeToWorld
(
int32 ParticleIdx |
Chaos/ContactModification.h | ||
FReal GetStaticFriction() |
Chaos/ContactModification.h | ||
FReal GetTargetSeparation
(
int32 ContactPointIdx |
Chaos/ContactModification.h | ||
FVec3 GetWorldContactLocation
(
int32 ContactPointIdx |
Chaos/ContactModification.h | ||
void GetWorldContactLocations
(
int32 ContactPointIdx, |
Get contact location on each body in world space. | Chaos/ContactModification.h | |
FVec3 GetWorldNormal
(
int32 ContactPointIdx |
Get the world-space contact normal. | Chaos/ContactModification.h | |
bool IsContactPointDisabled
(
int32 ContactPointIdx |
Check to see if a contact point index is disabled. | Chaos/ContactModification.h | |
bool IsEdgeContactPoint
(
int32 ContactPointIdx |
Check to see if a contact point index is an edge contact. | Chaos/ContactModification.h | |
void ModifyDynamicFriction
(
FReal DynamicFriction |
Modify dynamic friction coefficient of contact. | Chaos/ContactModification.h | |
void ModifyInvInertiaScale
(
FReal InvInertiaScale, |
Modify InvInertiaScale of particle. | Chaos/ContactModification.h | |
void ModifyInvMassScale
(
FReal InvMassScale, |
Modify InvMassScale of particle. | Chaos/ContactModification.h | |
void ModifyParticleAngularVelocity
(
FVec3 AngularVelocity, |
Modify angular velocity. | Chaos/ContactModification.h | |
void ModifyParticlePosition
(
FVec3 Position, |
For simulated objects: this sets PBD predicted position and not position before integrating movement. | Chaos/ContactModification.h | |
void ModifyParticleRotation
(
FRotation3 Rotation, |
For simulated objects: this sets PBD predicted rotation and not rotation before integrating movement. | Chaos/ContactModification.h | |
void ModifyParticleVelocity
(
FVec3 Velocity, |
Modify linear velocity. | Chaos/ContactModification.h | |
void ModifyRestitution
(
FReal Restitution |
Modify restitution of contact. | Chaos/ContactModification.h | |
void ModifyRestitutionThreshold
(
FReal Restitution |
Modify restitution threshold of contact. | Chaos/ContactModification.h | |
void ModifyStaticFriction
(
FReal StaticFriction |
Modify static friction coefficient of contact. | Chaos/ContactModification.h | |
void ModifyTargetSeparation
(
FReal TargetSeparation, |
Set the desired separation at the contact point (negative for penetration). | Chaos/ContactModification.h | |
void ModifyWorldContactLocations
(
const FVec3& Location0, |
Modify contact location of each body in world space. | Chaos/ContactModification.h | |
void ModifyWorldNormal
(
const FVec3& Normal, |
Modify contact normal in world space. | Chaos/ContactModification.h | |
void SetContactPointDisabled
(
int32 ContactPointIdx |
Set a contact point disabled. | Chaos/ContactModification.h | |
void SetIsInitialContact
(
bool bIsInitialContact |
Set whether this contact is considered an initial contact. | Chaos/ContactModification.h |