Skip to main content

Sphere

A 3D sphere that captures colliders that have ball-like properties.

sphere
ParameterTypeDescription
typestringThe Sphere shape class
namestringA user-defined name of the shape
framestringThe coordinateshe frame this shape belongs to. Can either be world or robot frame
physicalbooleanTrue if the collision with this shape is phyiscal, else false
radiusfloatThe length of radius of the sphere
localTransformisometry consisted of translation and rotationDefines the position and rotation of the shape relevant to the specific frame
let shape = {
type:'Sphere',
name:'bouncy ball',
frame: 'world',
physical: true,
radius:0.1,
localTransform: {translation:[0.0,0.0,0.0],rotation:[0.0,0.0,0.0,1.0]} // [x, y, z, w] ordering for quaternion
}