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

PhysicsMaterial

PhysicsMaterial

enum PhysicsMaterial : Enum<PhysicsMaterial>

Entries

NameSummary

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