Navigation
API > API/Runtime > API/Runtime/PhysicsCore
Physical materials are used to define the response of a physical object when interacting dynamically with the world.
| Name | UChaosPhysicalMaterial |
| Type | class |
| Header File | /Engine/Source/Runtime/PhysicsCore/Public/Chaos/ChaosPhysicalMaterial.h |
| Include Path | #include "Chaos/ChaosPhysicalMaterial.h" |
Syntax
UCLASS (BlueprintType, Blueprintable, CollapseCategories, HideCategories=Object, MinimalAPI)
class UChaosPhysicalMaterial : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UChaosPhysicalMaterial
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UChaosPhysicalMaterial
(
const FObjectInitializer& ObjectInitializer |
Chaos/ChaosPhysicalMaterial.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AngularEtherDrag | float | Uniform angular ether drag, the resistance a body experiences to its rotation. | Chaos/ChaosPhysicalMaterial.h |
|
| Friction | float | Surface properties. | Chaos/ChaosPhysicalMaterial.h |
|
| LinearEtherDrag | float | Uniform linear ether drag, the resistance a body experiences to its translation. | Chaos/ChaosPhysicalMaterial.h |
|
| Restitution | float | Restitution or 'bounciness' of this surface, between 0 (no bounce) and 1 (outgoing velocity is same as incoming). | Chaos/ChaosPhysicalMaterial.h |
|
| SleepingAngularVelocityThreshold | float | How much to scale the damage threshold by on any destructible we are applied to | Chaos/ChaosPhysicalMaterial.h |
|
| SleepingLinearVelocityThreshold | float | How much to scale the damage threshold by on any destructible we are applied to | Chaos/ChaosPhysicalMaterial.h |
|
| StaticFriction | float | Friction value of surface at rest, controls how easily things can slide on this surface (0 is frictionless, higher values increase the amount of friction) | Chaos/ChaosPhysicalMaterial.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CopyTo
(
Chaos::FChaosPhysicsMaterial& Mat |
Update the values in Mat_ to reflect the values in this UObject_. |
Chaos/ChaosPhysicalMaterial.h |