Navigation
API > API/Plugins > API/Plugins/HairStrandsSolver
Groom solver component in which groom component could be added to be solver together
| Name | UGroomSolverComponent |
| Type | class |
| Header File | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsSolver/Public/GroomSolverComponent.h |
| Include Path | #include "GroomSolverComponent.h" |
Syntax
UCLASS (HideCategories=(Object, Physics, Collision, Activation, Mobility, "Components|Activation"),
Meta=(BlueprintSpawnableComponent), ClassGroup=Physics, MinimalAPI)
class UGroomSolverComponent :
public UMeshComponent ,
public IDataflowPhysicsSolverInterface
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UPrimitiveComponent → UMeshComponent → UGroomSolverComponent
Implements Interfaces
- IAsyncPhysicsStateProcessor
- IInterface_AssetUserData
- IInterface_AsyncCompilation
- INavRelevantInterface
- IPhysicsComponent
- IDataflowPhysicsSolverInterface
- IDataflowSimulationInterface
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UGroomSolverComponent
(
const FObjectInitializer& ObjectInitializer |
GroomSolverComponent.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CollisionComponents | TMap< TObjectPtr< UMeshComponent >, int32 > | List of collision components registered to the solver | GroomSolverComponent.h |
|
| DeformerInstance | TObjectPtr< UMeshDeformerInstance > | Object containing state for the MeshDeformer. | GroomSolverComponent.h |
|
| DeformerSettings | TObjectPtr< UMeshDeformerInstanceSettings > | Object containing instance settings for the MeshDeformer. | GroomSolverComponent.h |
|
| GroomComponents | TSet< TObjectPtr< UGroomComponent > > | List of physics objects registered to the solver | GroomSolverComponent.h |
|
| GroomSolverProxy | FDataflowGroomSolverProxy | Groom solver proxy to be used in dataflow | GroomSolverComponent.h | |
| MeshDeformer | TObjectPtr< UMeshDeformer > | Graph deformer solver the component is using | GroomSolverComponent.h |
|
| SimulationAsset | FDataflowSimulationAsset | Solver dataflow asset used to advance in time | GroomSolverComponent.h |
|
| SolverSettings | FGroomSolverSettings | Solver settings used to control the simulation | GroomSolverComponent.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddCollisionComponent
(
UMeshComponent* CollisionComponent, |
Add a collision component to the solver | GroomSolverComponent.h |
|
void AddGroomComponent
(
UGroomComponent* GroomComponent |
Add a groom component to the solver | GroomSolverComponent.h |
|
const TMap< TObjectPtr< UMeshComponent >, int32 > & GetCollisionComponents() |
Get the solver collision components | GroomSolverComponent.h | |
const TSet< TObjectPtr< UGroomComponent > > & GetGroomComponents() |
Get the solver groom components | GroomSolverComponent.h | |
UMeshDeformerInstance * GetMeshDeformerInstance() |
Return the mesh deformer instance | GroomSolverComponent.h | |
const FGroomSolverSettings & GetSolverSettings() |
Get the groom solver settings | GroomSolverComponent.h | |
void RemoveCollisionComponent
(
UMeshComponent* CollisionComponent |
Remove a collision component to the solver | GroomSolverComponent.h |
|
void RemoveGroomComponent
(
UGroomComponent* GroomComponent |
Remove a groom component to the solver | GroomSolverComponent.h |
|
void ResetCollisionComponents() |
Reset the solver collision components | GroomSolverComponent.h |
|
void ResetGroomComponents() |
Reset the solver groom components | GroomSolverComponent.h |
|
void SetDeformerSolver
(
UMeshDeformer* DeformerSolver |
Change the MeshDeformer solver that is used for this Component. | GroomSolverComponent.h |
|
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CreateRenderState_Concurrent
(
FRegisterComponentContext* Context |
GroomSolverComponent.h | ||
virtual void DestroyRenderState_Concurrent() |
GroomSolverComponent.h | ||
virtual void OnRegister() |
GroomSolverComponent.h | ||
virtual void OnUnregister() |
GroomSolverComponent.h | ||
virtual void SendRenderDynamicData_Concurrent() |
GroomSolverComponent.h | ||
virtual void TickComponent
(
float DeltaTime, |
GroomSolverComponent.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
GroomSolverComponent.h |
Overridden from IDataflowSimulationInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BuildSimulationProxy() |
GroomSolverComponent.h | ||
virtual const FDataflowSimulationAsset & GetSimulationAsset () |
GroomSolverComponent.h | ||
virtual FDataflowSimulationAsset & GetSimulationAsset () |
GroomSolverComponent.h | ||
virtual FString GetSimulationName() |
GroomSolverComponent.h | ||
virtual FDataflowSimulationProxy * GetSimulationProxy () |
GroomSolverComponent.h | ||
virtual const FDataflowSimulationProxy * GetSimulationProxy () |
GroomSolverComponent.h | ||
virtual void ReadFromSimulation
(
const float DeltaTime, |
GroomSolverComponent.h | ||
virtual void ResetSimulationProxy() |
GroomSolverComponent.h | ||
virtual void WriteToSimulation
(
const float DeltaTime, |
GroomSolverComponent.h |