PhysicMaterial

A physic material is a type of Asset that allows you to control how to surface of a PhysicObject will behave. It is used to adjust friction and bouncing effects (restitution) of two colliding objects (RigidBody). For SoftBody a physic material will allow you to control the flexibility (the linear stiffness) of each primitive.

See Also

Static Variables


Name Description
asset Parent Asset where the PhysicMaterial structure is maintained.

Variables


Name Description
friction Coulomb coefficient to use for the Collider (RigidBody only).
restitution Controls the elasticity of the collision (RigidBody only).
friction_combiner The Combiner to use for friction.
restitution_combiner The Combiner to use for restitution.
linear_stiffness Controls how stiff the faces attached to this PhysicMaterial should be (SoftBody only).

Combiner


Constant values that enumerate the type of combiner the PhysicMaterial should use from friction and restitution.

Note
If one of the Collider does not have any PhysicMaterial attached default friction (0.5) and restitution (0.0) values will be used.




NRG - API 2022.3.383570 - Thu Jul 28 2022
Copyright © 2022 nrgcore.com. All Rights Reserved. Terms of Service - Privacy Policy - EULA