UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PerParticlePBDGroundConstraint.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "PerParticleRule.h"
5
6namespace Chaos
7{
9{
10 public:
12 : MHeight(Height) {}
14
15 inline void Apply(FPBDParticles& InParticles, const FReal Dt, const int32 Index) const override //-V762
16 {
17 if (InParticles.P(Index)[1] >= MHeight || InParticles.InvM(Index) == 0)
18 return;
19 InParticles.P(Index)[1] = MHeight;
20 }
21
22 private:
23 FReal MHeight;
24};
25
26template<class T, int d>
27using PerParticlePBDGroundConstraint UE_DEPRECATED(4.27, "Deprecated. this class is to be deleted, use FPerParticlePBDGroundConstraint instead") = FPerParticlePBDGroundConstraint;
28
29}
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition PerParticlePBDGroundConstraint.h:9
void Apply(FPBDParticles &InParticles, const FReal Dt, const int32 Index) const override
Definition PerParticlePBDGroundConstraint.h:15
FPerParticlePBDGroundConstraint(const FReal Height=0)
Definition PerParticlePBDGroundConstraint.h:11
virtual ~FPerParticlePBDGroundConstraint()
Definition PerParticlePBDGroundConstraint.h:13
Definition PerParticleRule.h:18
Definition PBDParticles.h:12
Definition SkeletalMeshComponent.h:307
FRealDouble FReal
Definition Real.h:22
U16 Index
Definition radfft.cpp:71