Open 3D Engine AzFramework 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.
AzPhysics::SystemConfiguration Struct Reference

#include <SystemConfiguration.h>

Public Member Functions

 AZ_RTTI (AzPhysics::SystemConfiguration, "{24697CAF-AC00-443D-9C27-28D58734A84C}")
 
bool operator== (const SystemConfiguration &other) const
 
bool operator!= (const SystemConfiguration &other) const
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

 AZ_CLASS_ALLOCATOR_DECL
 
float m_maxTimestep = 0.1f
 Value represents 1/60th or 60 FPS. More...
 
float m_fixedTimestep = DefaultFixedTimestep
 Timestep in seconds to run the physics update. See DefaultFixedTimestep.
 
AZ::u32 m_raycastBufferSize = 32
 Maximum number of hits that will be returned from a raycast.
 
AZ::u32 m_shapecastBufferSize = 32
 Maximum number of hits that can be returned from a shapecast.
 
AZ::u32 m_overlapBufferSize = 32
 Maximum number of overlaps that can be returned from an overlap query.
 
CollisionConfiguration m_collisionConfig
 
bool m_autoManageSimulationUpdate = true
 

Static Public Attributes

static constexpr float DefaultFixedTimestep = 0.0166667f
 

Detailed Description

Contains global physics settings. Used to initialize the Physics System.

Member Data Documentation

◆ m_autoManageSimulationUpdate

bool AzPhysics::SystemConfiguration::m_autoManageSimulationUpdate = true

Controls whether the Physics System will self register to the TickBus and call StartSimulation / FinishSimulation on each Scene. Disable this to manually control Physics Scene simulation logic.

◆ m_collisionConfig

CollisionConfiguration AzPhysics::SystemConfiguration::m_collisionConfig

Contains the default global collision layers and groups. Each Physics Scene uses this as a base and will override as needed.

◆ m_maxTimestep

float AzPhysics::SystemConfiguration::m_maxTimestep = 0.1f

Value represents 1/60th or 60 FPS.

Maximum fixed timestep in seconds to run the physics update (10FPS).


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