Chaos::ESuspensionConstraintFlags

Default settings implementation.

Windows
MacOS
Linux
On this page

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDSuspensionConstraintData.h

Include

#include "Chaos/PBDSuspensionConstraintData.h"

Syntax

namespace Chaos
{
    enum ESuspensionConstraintFlags
    {
        Location                        = 0,
        Enabled                         = static_cast(1) << 1,
        Target                          = static_cast(1) << 2,
        HardstopStiffness               = static_cast(1) << 3,
        HardstopVelocityCompensation    = static_cast(1) << 4,
        SpringPreload                   = static_cast(1) << 5,
        SpringStiffness                 = static_cast(1) << 6,
        SpringDamping                   = static_cast(1) << 7,
        MinLength                       = static_cast(1) << 8,
        MaxLength                       = static_cast(1) << 9,
        Axis                            = static_cast(1) << 10,
        DummyFlag,
    }
}

Values

Name

Description

Location

Enabled

Target

HardstopStiffness

HardstopVelocityCompensation

SpringPreload

SpringStiffness

SpringDamping

MinLength

MaxLength

Axis

DummyFlag

Remarks

Copyright Epic Games, Inc.All Rights Reserved.

Copyright Epic Games, Inc. All Rights Reserved.

Copyright Epic Games, Inc. All Rights Reserved. Draw functions for debugging trace/sweeps/overlaps

LEGACY CODE Kept around for serialization of old data. Most of the API has been removed, except what is needed to convert to the new format. See ConvexHalfEdgeStructureData.h for the replacement.

This is an approximation but only collides with spheres in the velocity direction which can hurt compared to all directions when it comes to thickness

todo: -proper suspension setup for resting position - decide on parameters i.e. use SuspensionMaxRaise/SuspensionMaxDrop?? -natural frequency stuff -defaults

todo: Not really making use of this yet. Tire nuances more advanced than current simulation which just requires one friction value

Typical gear ratios: Reverse −4.181, 1st 3.818, 2nd 2.294, 3rd 1.500, 4th 1.133, 5th 0.911 Source: Georg Rill. Road Vehicle Dynamics: Fundamentals and Modeling (Ground Vehicle Engineering Series) (p. 121). CRC Press.

#todo: Add clutch option #todo: Proper defaults

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss