Open Asterune
PhysicalProperties

PhysicalProperties

Specifies density, friction, elasticity, and their blending weights.

Behavior

PhysicalProperties specifies density, friction, elasticity, and their blending weights.

Summary

Constructors1
Functions1
  • PhysicalProperties.new(…)

    Creates physical properties from density, friction, elasticity, and optional blending weights.

Members5
Properties5
  • Density: numberread only

    The mass density used when deriving the body's mass from its volume.

  • Elasticity: numberread only

    The restitution coefficient used for contact response.

  • ElasticityWeight: numberread only

    The weight of this surface's elasticity when combining contact properties.

  • Friction: numberread only

    The friction coefficient used for contact response.

  • FrictionWeight: numberread only

    The weight of this surface's friction when combining contact properties.

Constructors

new

PhysicalProperties.new(…)

Creates physical properties from density, friction, elasticity, and optional blending weights.

Properties

Density

PhysicalProperties.Density: number

The mass density used when deriving the body's mass from its volume.

Elasticity

PhysicalProperties.Elasticity: number

The restitution coefficient used for contact response.

ElasticityWeight

PhysicalProperties.ElasticityWeight: number

The weight of this surface's elasticity when combining contact properties.

Friction

PhysicalProperties.Friction: number

The friction coefficient used for contact response.

FrictionWeight

PhysicalProperties.FrictionWeight: number

The weight of this surface's friction when combining contact properties.

Operators

__eq · __tostring · __type