| FClothingSimulationCommon | ||
| FGCObject
|
Module |
|
Header |
/Engine/Plugins/Experimental/ChaosCloth/Source/Chaos/Public/ChaosCloth/ChaosClothingSimulation.h |
Include |
#include "ChaosCloth/ChaosClothingSimulation.h" |
class FClothingSimulation :
public FClothingSimulationCommon,
public FGCObject
Name | Description | |
---|---|---|
|
FClothingSimulation() |
Name | Description | |
---|---|---|
|
~FClothingSimulation() |
Name | Description | ||
---|---|---|---|
|
AddExternalCollisions ( |
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 |
|
|
ClearExternalCollisions() |
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. |
|
|
CreateActor ( |
Create an actor for this simulation from the data in InAsset Simulation data for this actor should be written back to SimDataIndex in GetSimulationData |
|
|
IClothingSim... |
CreateContext() |
Create a new context, will not be filled, call FillContext before simulating with this context |
|
DestroyActors() |
Simulation should remove all of it's actors when next possible and free them |
|
|
DestroyContext ( |
Destroy a context object, engine will always pass a context created using CreateContext |
|
|
FBoxSphereBo... |
GetBounds ( |
Return bounds in local space (or in world space if InOwnerComponent is null). |
|
GetCollisions ( |
Called by the engine to request data on all active collisions in a simulation. |
|
|
GetNumCloths() |
Return the number of simulated cloths. Implementation must be thread safe. |
|
|
GetNumDynamicParticles() |
Return the number of dynamic (simulated) particles. Implementation must be thread safe. |
|
|
GetNumIterations() |
Return the number of iterations used by the solver. |
|
|
GetNumKinematicParticles() |
Return the number of kinematic (fixed) particles. Implementation must be thread safe. |
|
|
GetNumSubsteps() |
Return the number of substeps used by the solver. |
|
|
GetSimulationData ( |
Fill FClothSimulData map for the clothing simulation. |
|
|
GetSimulationTime() |
Return the simulation time in ms. Implementation must be thread safe. |
|
|
Initialize() |
Initialize the simulation, will be called before any Simulate calls |
|
|
IsTeleported() |
Return whether the simulation is teleported. Implementation must be thread safe. |
|
|
SetNumIterations ( |
Set the number of iterations used by the solver. |
|
|
SetNumSubsteps ( |
Set the number of substeps used by the solver. |
|
|
ShouldSimulate() |
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 |
|
|
Shutdown() |
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. |
|
|
Simulate ( |
Run a single tick of the simulation. |
|
|
UpdateWorldForces ( |
Update the forces coming from the world. |
Name | Description | ||
---|---|---|---|
|
AddReferencedObjects ( |
Pure virtual that must be overloaded by the inheriting class. |