API reference
API reference
Select your platform
No SDKs available
No versions available

PhysicsMaterial

PhysicsMaterial

enum PhysicsMaterial : Enum<PhysicsMaterial>
Allows you to apply properties of certain materials to your physics objects. These are loosely researched values, and are not guaranteed to be accurate. Please use at your own risk

Entries

NameSummary
WOOD

Accuracy is based on the following references.
LEAD

Accuracy is based on the following references.

Properties

NameSummary
density
val density: Float
friction
val friction: FrictionObject
name
val name: String
ordinal
val ordinal: Int
restitution
val restitution: Float

Functions

NameSummary
valueOf
fun valueOf(value: String): PhysicsMaterial

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values
fun values(): Array<PhysicsMaterial>

Returns an array containing the constants of this enum type, in the order they’re declared.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon