Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FSimpleSuspensionHelpers
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool ComputeSprungMasses
(
const TArray< FVector >& MassSpringPositions, |
Setup functions Compute the distribution of the mass of a body among springs. | Physics/SimpleSuspension.h | |
static bool ComputeSprungMasses
(
const TArray< FVector >& LocalSpringPositions, |
Same as above, but allows the caller to specify spring locations in a local space which is not necessarily originated at the center of mass. | Physics/SimpleSuspension.h |
ComputeSprungMasses(const TArray< FVector > &, const float, TArray< float > &, FString *)
Description
Setup functions Compute the distribution of the mass of a body among springs. This method assumes that spring positions are given relative to the center of mass of the body, and that gravity occurs in the local -Z direction.
Returns true if it was able to find a valid mass configuration. If only one or two springs are included, then a valid configuration may not result in a stable suspension system - a bicycle or pogostick, for example, which is not perfectly centered may have a valid sprung mass configuration without being stable.
| Name | ComputeSprungMasses |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Physics/SimpleSuspension.h |
| Include Path | #include "Physics/SimpleSuspension.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/SimpleSuspension.cpp |
static bool ComputeSprungMasses
(
const TArray < FVector > & MassSpringPositions,
const float TotalMass,
TArray < float > & OutSprungMasses,
FString * ErrMsg
)
ComputeSprungMasses(const TArray< FVector > &, const FVector &, const float, TArray< float > &, FString *)
Description
Same as above, but allows the caller to specify spring locations in a local space which is not necessarily originated at the center of mass.
| Name | ComputeSprungMasses |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Physics/SimpleSuspension.h |
| Include Path | #include "Physics/SimpleSuspension.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/SimpleSuspension.cpp |
static bool ComputeSprungMasses
(
const TArray < FVector > & LocalSpringPositions,
const FVector & LocalCenterOfMass,
const float TotalMass,
TArray < float > & OutSprungMasses,
FString * ErrMsg
)