Class ShapeSettingsInterface

Properties

convexRadius: number

See

ShapeComponent.convexRadius

Default Value

0.05 (m)
density: number

See

ShapeComponent.density

Default Value

1000
halfExtent: Vec3

See

ShapeComponent.halfExtent

Default Value

Vec3(0.5, 0.5, 0.5)
halfHeight: number

See

ShapeComponent.halfHeight

Default Value

0.5 (m)
radius: number

See

ShapeComponent.radius

Default Value

0.5 (m)
scale: Vec3

Scales the shape. Uniform scale is always fine. Non-uniform scale is supported only by some shapes. For example:

  • you can use non-uniform scale on a box shape, but not on a sphere, etc.
  • you can use non-uniform scale on a cylinder/capsule, but X and Z must be uniform.

Default Value

Vec3(1, 1, 1)
shapePosition: Vec3

See

ShapeComponent.shapePosition

Default Value

Vec3(0, 0, 0)
shapeRotation: Quat

See

ShapeComponent.shapeRotation

Default Value

Quat(0, 0, 0, 1)