Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel
UE3:FracturedStaticMeshActor (UDK)
- Package:
- Engine
- Direct subclasses:
- FracturedSMActorSpawnable, FracturedStaticMeshPart, PhysXDestructibleActor
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Properties[edit]
Property group 'FracturedStaticMeshActor'[edit]
bBreakChunksOnActorTouch[edit]
Type: bool
If true, detach parts when an Actor with bCanCauseFractureOnTouch contacts them. Actor must not be blocked by this FSMA.
ChunkHealthScale[edit]
Type: float
Allows controlling how much 'health' chunks have on a per-instance basis
Default value: 1.0
FractureCullMaxDistance[edit]
Type: float
Maximum distance from player where actor will be allowed to fracture (scaled by global settings.)
Default value: 4096.0
FractureCullMinDistance[edit]
Type: float
Minimum distance from player where actor will ALWAYS fracture, even when outside the view frustum (scaled by global settings.)
Default value: 512.0
FracturedByDamageType[edit]
Type: array<class<DamageType> >
Set of damage types that can cause pieces to break off this FSAM. If empty, all damage types can do this.
FracturedStaticMeshComponent[edit]
Type: FracturedStaticMeshComponent
Modifiers: const, editconst
Default value: FracturedStaticMeshComponent'FracturedStaticMeshComponent0'
MaxPartsToSpawnAtOnce[edit]
Type: int
Maximum number of rigid body parts to spawn off per actor, per frame
Default value: 6
OverrideFragmentDestroyEffects[edit]
Type: array<ParticleSystem>
Allows you to override particle effects to play when chunk is hidden for just this actor.
Internal variables[edit]
bHasShownMissingSoundWarning[edit]
Type: bool
Modifiers: transient
Used so we only display the 'missing sound' warning once
ChunkHealth[edit]
Current health of each chunk
DeferredPartsToSpawn[edit]
Type: array<DeferredPartToSpawn>
Modifiers: transient
Array of parts that are waiting to be spawned in an upcoming tick
ExplosionFractureSound[edit]
Type: SoundCue
Cached sound for large fractures.
MI_LoseChunkPreviousMaterial[edit]
Type: MaterialInterface
Modifiers: transient
This is the material that was set on this FracuredStaticMeshActor before we overrode it with LoseChunkOutsideMaterial *
PartImpactEffect[edit]
Type: Actor.PhysEffectInfo
Cached info for part impacts
SingleChunkFractureSound[edit]
Type: SoundCue
Cached sound for single chunk fractures.
SkinnedComponent[edit]
Type: FracturedSkinnedMeshComponent
Modifiers: transient, const
Skinned component which will handle rendering for FracturedStaticMeshComponent
Default values[edit]
Subobjects[edit]
FracturedSkinnedComponent0[edit]
Class: Engine.FracturedSkinnedMeshComponent
Property | Value |
---|---|
bDisableAllRigidBody | True |
LightEnvironment | DynamicLightEnvironmentComponent'Engine.Default__FracturedStaticMeshActor:LightEnvironment0' |
ReplacementPrimitive | None |
FracturedStaticMeshComponent0[edit]
Class: Engine.FracturedStaticMeshComponent
Property | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
bAllowApproximateOcclusion | True | ||||||||||
bForceDirectLightMap | True | ||||||||||
bUseDynamicIBWithHiddenFragments | True | ||||||||||
ReplacementPrimitive | None | ||||||||||
WireframeColor |
|
LightEnvironment0[edit]
Class: Engine.DynamicLightEnvironmentComponent
Property | Value |
---|---|
bDynamic | False |
bEnabled | False |
bForceNonCompositeDynamicLights | True |
Structs[edit]
DeferredPartToSpawn[edit]
Modifiers: native
Info about a fracture part that should be spawned in an upcoming Tick
- int ChunkIndex
- Index of the chunk to spawn
- Object.Vector InitialVel
- Exit velocity for this chunk
- Object.Vector InitialAngVel
- Exit angular velocity for this chunk
- float RelativeScale
- Relative scale
- bool bExplosion
- TRUE if this part was spawned because of an explosion
Functions[edit]
Native functions[edit]
BreakOffIsolatedIslands[edit]
Find all groups of chunks which are not connected to 'root' parts, and spawn them as new physics objects. Updates FragmentVis with new chunks that get hidden by the process.
BreakOffPartsInRadius[edit]
Util to break off all parts within radius of the explosion
ResetVisibility[edit]
Unhides all fragments
SpawnDeferredParts[edit]
Gives the actor a chance to spawn chunks that may have been deferred
Returns:
- Returns true if there are still any deferred parts left to spawn
RemoveDecals[edit]
This function will remove all of the currently attached decals from the object. Basically, we want to have decals attach to these objects and then on state change (due to damage usually), we will just detach them all with the big particle effect that occurs it should not be noticeable.
ResetHealth[edit]
Used to init/reset health array.
SpawnPart[edit]
Spawn one chunk of this mesh as its own Actor, with the supplied velocities and scale relative to this Actor.
SpawnPartMulti[edit]
Does the same as SpawnPart, but takes an array of chunks to make part of the new part.
Events[edit]
Explode[edit]
Break off all pieces in one go.
HideFragmentsToMaximizeMemoryUsage[edit]
Hide some percentage of the fragments from this mesh to maximize memory usage - does not spawn physics pieces etc
HideOneFragment[edit]
Hide one fragment from this mesh - does not spawn physics pieces etc
PostBeginPlay[edit]
Overrides: Actor.PostBeginPlay
TakeDamage[edit]
Overrides: Actor.TakeDamage
TakeDamage will hide/spawn chunks when they get shot.
Other instance functions[edit]
FractureEffectIsRelevant[edit]
Specialized to handle explicit effect instigators. Also, handles None instigators -- these are special weapons (eg dummyfire) and are always relevant. Also, for fractured static meshes we only spawn effects if the mesh itself has been rendered recently.
IsFracturedByDamageType[edit]
Util for checking if this damage type will cause fracture.
SetLoseChunkReplacementMaterial[edit]
This will possibly set the material on the FracturedMesh after we have lost a chunk. *