Navigation
API > API/Plugins > API/Plugins/ChaosFleshEngine > API/Plugins/ChaosFleshEngine/UDeformableGameplayComponent
Description
DetectEnvironmentCollisions
Do raycasts against the scene and feed the results into transient constraints in the solver. Setup data for this method is initialized in the FAuthorSceneCollisionCandidates dataflow node, stored in the rest collection. The TargetDeformationSkeleton on the rest collection is used for the origin of the raycasts.
MaxNumTests_ is the upper limit on the number of scene line tests. bTestDownOnly_ culls line tests that are not in the "down" direction. TestRange_ indicates how close to "down" tests need to be; 1 means only vectors pointing straight down are tested, 0.5 would include any vector about 45 degrees from straight down, 0.0 means any vector pointing down at all, and negative values up to -1 would include vectors pointing up. CollisionChannel_ denotes which scene objects to collide against.
| Name | DetectEnvironmentCollisions |
| Type | function |
| Header File | /Engine/Plugins/Experimental/ChaosFlesh/Source/ChaosFleshEngine/Public/ChaosFlesh/ChaosDeformableGameplayComponent.h |
| Include Path | #include "ChaosFlesh/ChaosDeformableGameplayComponent.h" |
| Source | /Engine/Plugins/Experimental/ChaosFlesh/Source/ChaosFleshEngine/Private/ChaosFlesh/ChaosDeformableGameplayComponent.cpp |
void DetectEnvironmentCollisions
(
const int32 MaxNumTests,
const bool bTestDownOnly,
const float TestRange,
const ECollisionChannel CollisionChannel
)