Class ShapeSettingsInterface

Properties

convexRadius: number
0.05 (m)
density: number
1000
halfExtent: Vec3
Vec3(0.5, 0.5, 0.5)
halfHeight: number
0.5 (m)
radius: number
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.
Vec3(1, 1, 1)
shapePosition: Vec3

A local position offset. Note, it will be added on top of any ShapeComponent.shapePosition you have on a component.

Vec3(0, 0, 0)
shapeRotation: Quat

A local rotation offset. Note, it will be added on top of any ShapeComponent.shapeRotation you have on a component.

Quat(0, 0, 0, 1)