UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CharacterGroundConstraintSettings.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Chaos/Core.h"
5
6namespace Chaos
7{
30
32 {
33 public:
35 {
36 return !FMemory::Memcmp(this, &Other, sizeof(*this));
37 }
38
39 FVec3 GroundNormal = FVec3::ZAxisVector;
40 FVec3 TargetDeltaPosition = FVec3::ZeroVector;
44 };
45
46} // namespace Chaos
Definition CharacterGroundConstraintSettings.h:32
FVec3 GroundNormal
Definition CharacterGroundConstraintSettings.h:39
FReal TargetDeltaFacing
Target linear movement vector. Will be projected onto ground plane.
Definition CharacterGroundConstraintSettings.h:41
FReal GroundDistance
Target rotation in radians about the vertical axis.
Definition CharacterGroundConstraintSettings.h:42
FReal CosMaxWalkableSlopeAngle
Distance from the character body to the ground.
Definition CharacterGroundConstraintSettings.h:43
bool operator==(const FCharacterGroundConstraintDynamicData &Other) const
Definition CharacterGroundConstraintSettings.h:34
FVec3 TargetDeltaPosition
World space ground normal.
Definition CharacterGroundConstraintSettings.h:40
Definition CharacterGroundConstraintSettings.h:9
FReal DampingFactor
Cosine of the maximum angle in degrees that the character is allowed to walk on.
Definition CharacterGroundConstraintSettings.h:23
void * UserData
Maximum ratio for the mass of character mass to ground mass. A negative value indicates no mass condi...
Definition CharacterGroundConstraintSettings.h:28
FReal RadialForceLimit
Desired distance from the character body to the ground.
Definition CharacterGroundConstraintSettings.h:18
FReal SwingTorqueLimit
How much torque the character can apply about the vertical axis to reach the target facing direction.
Definition CharacterGroundConstraintSettings.h:21
FReal FrictionForceLimit
How much force the character can apply parallel to the ground plane to reach the target position.
Definition CharacterGroundConstraintSettings.h:19
FReal TargetHeight
World space up direction (default z axis)
Definition CharacterGroundConstraintSettings.h:17
FReal MotionTargetMassBias
Below this height the character is assumed to be on the ground and can apply force/torque to reach th...
Definition CharacterGroundConstraintSettings.h:25
bool operator==(const FCharacterGroundConstraintSettings &Other) const
Definition CharacterGroundConstraintSettings.h:11
FReal MaxCharacterGroundMassRatio
Scale the radial force to always reach this fraction of the motion target.
Definition CharacterGroundConstraintSettings.h:27
FVec3 VerticalAxis
Definition CharacterGroundConstraintSettings.h:16
FReal CosMaxWalkableSlopeAngle
How much torque the character can apply about the other axes to remain upright.
Definition CharacterGroundConstraintSettings.h:22
FReal RadialForceMotionTargetScaling
Scaling factor applied to reduce the mass of the ground body in the linear motion target constraint.
Definition CharacterGroundConstraintSettings.h:26
FReal TwistTorqueLimit
How much force the character can apply parallel to the ground plane to reach the target position when...
Definition CharacterGroundConstraintSettings.h:20
FReal AssumedOnGroundHeight
Applies a damping to the vertical ground constraint making it softer. Units: /T.
Definition CharacterGroundConstraintSettings.h:24
Definition SkeletalMeshComponent.h:307
FRealDouble FReal
Definition Real.h:22
TVector< FReal, 3 > FVec3
Definition Core.h:17
static UE_FORCEINLINE_HINT int32 Memcmp(const void *Buf1, const void *Buf2, SIZE_T Count)
Definition UnrealMemory.h:114