Open 3D Engine AzFramework API Reference  2205.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
Physics::MaterialConfiguration Class Reference

#include <Material.h>

Inherited by Physics::DefaultMaterialConfiguration.

Public Member Functions

 AZ_RTTI (Physics::MaterialConfiguration, "{8807CAA1-AD08-4238-8FDB-2154ADD084A1}")
 
bool operator== (const MaterialConfiguration &other) const
 
bool operator!= (const MaterialConfiguration &other) const
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

AZStd::string m_surfaceType { "Default" }
 
float m_dynamicFriction = 0.5f
 
float m_staticFriction = 0.5f
 
float m_restitution = 0.5f
 
float m_density = 1000.0f
 
Material::CombineMode m_restitutionCombine = Material::CombineMode::Average
 
Material::CombineMode m_frictionCombine = Material::CombineMode::Average
 
AZ::Color m_debugColor = AZ::Colors::White
 

Static Public Attributes

const static AZ::Crc32 s_stringGroup
 Edit context data attribute. Identifies a string group instance. String values in the same group are unique.
 
const static AZ::Crc32 s_forbiddenStringSet
 Edit context data attribute. A set of strings that are not acceptable as values to the data element. Can be AZStd::unordered_set<AZStd::string>, AZStd::set<AZStd::string>, AZStd::vector<AZStd::string>
 
const static AZ::Crc32 s_configLineEdit
 Edit context data element handler. Creates custom line edit widget that allows string values to be unique in a group.
 
static constexpr float MinDensityLimit = 0.01f
 Minimum possible value of density.
 
static constexpr float MaxDensityLimit = 100000.0f
 Maximum possible value of density.
 

Protected Member Functions

virtual bool IsNameReadOnly () const
 

Detailed Description

Default values used for initializing materials

Use MaterialConfiguration to define properties for materials at the time of creation.
Use Physics::SystemRequestBus to create new materials.


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