被 FClothingSimulationCommon 继承.
|
| virtual void | GatherStats () const |
| | Called by the engine once per physics tick to gather non-cycle stats (num sim verts etc.) Will not be called if STATS is not defined, not required to be implemented if no need for stats. 更多...
|
| |
| virtual int32 | GetNumCloths () const |
| | Return the number of simulated cloths. 更多...
|
| |
| virtual int32 | GetNumDynamicParticles () const |
| | Return the number of dynamic (simulated) particles. 更多...
|
| |
| virtual int32 | GetNumIterations () const |
| | Return the number of iterations used by the solver. 更多...
|
| |
| virtual int32 | GetNumKinematicParticles () const |
| | Return the number of kinematic (fixed) particles. 更多...
|
| |
| virtual int32 | GetNumSubsteps () const |
| | Return the number of substeps used by the solver. 更多...
|
| |
| virtual float | GetSimulationTime () const |
| | Return the simulation time in ms. 更多...
|
| |
| virtual bool | IsTeleported () const |
| | Return whether the simulation is teleported. 更多...
|
| |
|
| virtual void | AddExternalCollisions (const FClothCollisionData &InData)=0 |
| | Called by the engine when an external object wants to inject collision data into this simulation above and beyond what is specified in the asset for the internal actors Examples: Scene collision, collision for parents we are attached to 更多...
|
| |
| virtual void | ClearExternalCollisions ()=0 |
| | Called by the engine when external collisions are no longer necessary or when they need to be updated with some of the previous collisions removed. 更多...
|
| |
| virtual void | CreateActor (USkeletalMeshComponent *InOwnerComponent, UClothingAssetBase *InAsset, int32 SimDataIndex)=0 |
| | Create an actor for this simulation from the data in InAsset Simulation data for this actor should be written back to SimDataIndex in GetSimulationData 更多...
|
| |
|
virtual IClothingSimulationContext * | CreateContext ()=0 |
| | Create a new context, will not be filled, call FillContext before simulating with this context
|
| |
|
virtual void | DestroyActors ()=0 |
| | Simulation should remove all of it's actors when next possible and free them
|
| |
| virtual void | DestroyContext (IClothingSimulationContext *InContext)=0 |
| | Destroy a context object, engine will always pass a context created using CreateContext 更多...
|
| |
| virtual void | FillContext (USkeletalMeshComponent *InComponent, float InDeltaTime, IClothingSimulationContext *InOutContext)=0 |
| | Fills an existing context for a single simulation step, called by the engine on the game thread prior to simulation 更多...
|
| |
|
virtual FBoxSphereBounds | GetBounds (const USkeletalMeshComponent *InOwnerComponent) const =0 |
| | Get the bounds of the simulation mesh in local simulation space
|
| |
| virtual void | GetCollisions (FClothCollisionData &OutCollisions, bool bIncludeExternal=true) const =0 |
| | Called by the engine to request data on all active collisions in a simulation. 更多...
|
| |
| virtual void | GetSimulationData (TMap< int32, FClothSimulData > &OutData, USkeletalMeshComponent *InOwnerComponent, USkinnedMeshComponent *InOverrideComponent) const =0 |
| | Fill FClothSimulData map for the clothing simulation. 更多...
|
| |
|
virtual void | Initialize ()=0 |
| | Initialize the simulation, will be called before any Simulate calls
|
| |
|
virtual void | PostActorCreationInitialize () |
| | Do any required initialization after all the actors have been loaded
|
| |
|
virtual bool | ShouldSimulate () const =0 |
| | Called by the engine to detect whether or not the simulation should run, essentially are there any actors that need to simulate in this simulation
|
| |
|
virtual void | Shutdown ()=0 |
| | Shutdown the simulation, this should clear ALL resources as we no longer expect to call any other function on this simulation without first calling Initialize again.
|
| |
| virtual void | Simulate (IClothingSimulationContext *InContext)=0 |
| | Run a single tick of the simulation. 更多...
|
| |
Base class for clothing simulators.
| virtual void IClothingSimulation::GatherStats |
( |
| ) |
const |
|
inlinevirtual |
Called by the engine once per physics tick to gather non-cycle stats (num sim verts etc.) Will not be called if STATS is not defined, not required to be implemented if no need for stats.
STAT_NumCloths and STAT_NumClothVerts are already defined and can be incremented, more can be added per simulation. This can be called on any thread, so derived implementations should make sure the gather is safe