Skip to content

PhysicalMaterial

Class in Engine · Engine.PhysicalMaterial · native

Object › PhysicalMaterial

Using it from Lua
h7.find_all("PhysicalMaterial")            -- live instances
h7.find_class("Engine.PhysicalMaterial")   -- the class
h7.hook("Engine.PhysicalMaterial.FindFractureSounds", fn)

Enums

EPhysEffectType

EPMET_Impact = 0, EPMET_Slide = 1

Properties

NameTypeNotes
AngularDampingfloat
AnisoFrictionDirvector
bEnableAnisotropicFrictionbool
bForceConeFrictionbool
Densityfloat
FractureSoundExplosionSoundCue
FractureSoundSingleSoundCue
Frictionfloat
FrictionVfloat
ImpactEffectParticleSystem
ImpactReFireDelayfloat
ImpactSoundSoundCue
ImpactThresholdfloat
LinearDampingfloat
MagneticResponsefloat
MaterialIndexinttransient
ParentPhysicalMaterial
PhysicalMaterialPropertyPhysicalMaterialPropertyBase
Restitutionfloat
SlideEffectParticleSystem
SlideReFireDelayfloat
SlideSoundSoundCue
SlideThresholdfloat
WindResponsefloat

Functions

NameDeclaration
FindFractureSoundssimulated function FindFractureSounds(out SoundCue OutSoundExplosion, out SoundCue OutSoundSingle)
FindPhysEffectInfonative function PhysEffectInfo FindPhysEffectInfo(EPhysEffectType Type)
GetPhysicalMaterialPropertysimulated function PhysicalMaterialPropertyBase GetPhysicalMaterialProperty(class<PhysicalMaterialPropertyBase> DesiredClass)

Default values

Friction=0.7
Restitution=0.3
Density=1.0
AngularDamping=0.0
LinearDamping=0.01
MagneticResponse=0.0
WindResponse=0.0

Inherited

FromMembers
Object13 properties, 308 functions