Navigation
API > API/Plugins > API/Plugins/ChaosCloth > API/Plugins/ChaosCloth/FClothingSimulationCloth
Description
Return the current gravity as applied by the solver using the various overrides, not thread safe, call must be done right after the solver update. Does not have GravityScale applied when using Force-based solver (Get the per-particle value directly from cloth constraints' external forces).
| Name | GetGravity |
| Type | function |
| Header File | /Engine/Plugins/ChaosCloth/Source/ChaosCloth/Public/ChaosCloth/ChaosClothingSimulationCloth.h |
| Include Path | #include "ChaosCloth/ChaosClothingSimulationCloth.h" |
| Source | /Engine/Plugins/ChaosCloth/Source/ChaosCloth/Private/ChaosCloth/ChaosClothingSimulationCloth.cpp |
TVec3< FRealSingle > GetGravity
(
const FClothingSimulationSolver * Solver
) const