Open 3D Engine PhysX Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
PhysX::JointGenericProperties Struct Reference

Properties that are common for several types of joints. More...

#include <PhysXJointConfiguration.h>

Public Types

enum class  GenericJointFlag : AZ::u16 { None = 0 , Breakable = 1 , SelfCollide = 1 << 1 }
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (JointGenericProperties, AZ::SystemAllocator)
 
 AZ_TYPE_INFO (JointGenericProperties, "{6CB15399-24F6-4F03-AAEF-1AE013B683E0}")
 
 JointGenericProperties (GenericJointFlag flags, float forceMax, float torqueMax)
 
bool IsFlagSet (GenericJointFlag flag) const
 Returns if a particular flag is set as a bool.
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

GenericJointFlag m_flags = GenericJointFlag::None
 
float m_forceMax = 1.0f
 Max force joint can tolerate before breaking.
 
float m_torqueMax = 1.0f
 Max torque joint can tolerate before breaking.
 

Detailed Description

Properties that are common for several types of joints.

Member Data Documentation

◆ m_flags

GenericJointFlag PhysX::JointGenericProperties::m_flags = GenericJointFlag::None

Flags that indicates if joint is breakable, self-colliding, etc. Converting joint between breakable/non-breakable at game time is allowed.


The documentation for this struct was generated from the following file: