Komodo Engine
C PROJECT_LOGO=
|
Set of parameters for a material in a physics system. More...
Public Member Functions | |
PhysicsMaterial ([NotNull] string name) | |
Creates a new physics material. Physics material names are unique identifiers. More... | |
Static Public Member Functions | |
static PhysicsMaterial | GetPhysicsMaterial (string name) |
Provides the PhysicsMaterial instance for the given name. More... | |
Properties | |
float | AngularDamping [get, set] |
AngularDamping defines how an object's angular veloctity is reduced over time with no interaction from other physics objects. More... | |
float | AngularDampingLimit [get, set] |
AngularDampingLimit defines the threshold at which the angular velocity of an object will be clamped to 0 in all dimensions. More... | |
float | LinearDampingLimit [get, set] |
LinearDampingLimit defines the threshold at which the linear velocity of an object will be clamped to 0 in all dimensions. More... | |
float | Friction [get, set] |
Defines the frictional coefficient for objects that interact with this PhysicsMaterial. More... | |
float | LinearDamping [get, set] |
LinearDamping defines how an object's linear veloctity is reduced over time with no interaction from other physics objects. More... | |
string | Name [get, set] |
Unique identifier for the PhysicsMaterial. More... | |
float | Restitution [get, set] |
Bounciness of the physics object. More... | |
Set of parameters for a material in a physics system.
Komodo.Core.Physics.PhysicsMaterial.PhysicsMaterial | ( | [NotNull] string | name | ) |
Creates a new physics material. Physics material names are unique identifiers.
name | The unique name for a physics material. If an existing name is provided, a System.ArgumentException is thrown. |
|
static |
Provides the PhysicsMaterial instance for the given name.
name | Identifying name of the PhysicsMaterial. |
|
getset |
AngularDamping defines how an object's angular veloctity is reduced over time with no interaction from other physics objects.
The higher the AngularDamping, the quicker angular velocity will drop over time. A value of 0 will provide no reduction in angular velocity over time.
|
getset |
AngularDampingLimit defines the threshold at which the angular velocity of an object will be clamped to 0 in all dimensions.
The threshold is measured by the length of the angular velocity vector.
|
getset |
Defines the frictional coefficient for objects that interact with this PhysicsMaterial.
|
getset |
LinearDamping defines how an object's linear veloctity is reduced over time with no interaction from other physics objects.
The higher the LinearDamping, the quicker linear velocity will drop over time. A value of 0 will provide no reduction in linear velocity over time.
|
getset |
LinearDampingLimit defines the threshold at which the linear velocity of an object will be clamped to 0 in all dimensions.
The threshold is measured by the length of the anglinearular velocity vector.
|
getset |
Unique identifier for the PhysicsMaterial.
|
getset |
Bounciness of the physics object.
A value of 0 simulates a completely inelastic collision. A value of 1 simulates a perfectly elastic collision. Values greater than 1 simulate collisions that are more elastic than perfect elasticity. A value of 2 will mean that the object bounces with a velocity twice that of when it collided.