Interface HeightfieldOptions

Hierarchy

Properties

angle?: number

Body-local angle of the shape.

See

angle

collisionGroup?: number

Collision group for the shape

collisionMask?: number

Collision mask for the shape

collisionResponse?: boolean

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

elementWidth?: number

The width of each element

heights?: number[]

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

See

heights

material?: Material

Material for the shape

maxValue?: number

Max value of the heights

minValue?: number

Min value of the heights

position?: Vec2

Body-local position of the shape.

sensor?: boolean

Whether the shape is a sensor

See

sensor