Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HeightfieldOptions

Hierarchy

Index

Properties

angle?: number

Body-local angle of the shape.

see

Shape.angle

collisionGroup?: number

Collision group for the shape

see

Shape.collisionGroup

collisionMask?: number

Collision mask for the shape

see

Shape.collisionMask

collisionResponse?: boolean

Whether to produce contact forces when in contact with other bodies.

see

Shape.collisionResponse

elementWidth?: number

The width of each element

see

Heightfield.elementWidth

heights?: number[]

An array of numbers, or height values, that are spread out along the x axis.

see

Heightfield.heights

material?: Material

Material for the shape

see

Shape.material

maxValue?: number

Max value of the heights

see

Heightfield.maxValue

minValue?: number

Min value of the heights

see

Heightfield.minValue

position?: Vec2

Body-local position of the shape.

see

Shape.position

sensor?: boolean

Whether the shape is a sensor

see

Shape.sensor