cables is under heavy development.
There might be one or another bug, please let us know about it!

CannonPhysicsSphere_v2 Op



Physical Sphere Body

summary (oneliner)

Create a physics body in the shape of sphere, can be used with the cast ray op and other physics ops



example patch id

youtube id

caniuse query


related ops


Exec (Trigger)

Trigger in

Name (String)

Mass (Number)

How heavy an object is, only works with gravity enabled

Radius (Number)

Radius of the sphere

Render (boolean /Number)

Enable to render sphere to screen

Reset (Trigger)

Reset physics


Next (Trigger)

Trigger out

Out Radius (Number)

X (Number)

X position

Y (Number)

Y position

Z (Number)

Z position

Ray Hit (boolean Number)

Outputs true if a ray hits

Collision (Trigger)

Trigger out when colliding with another physics object

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

Physics Sphere Example

This example uses a physics sphere that can be bounced by clicking on it.

Open Example In Editor

Patches using CannonPhysicsSphere_v2


created op
2019-03-14 - pandur

Ops.Exp.Gl.Physics.Body.Sphere_v2 renamed to Ops.Exp.Gl.Physics.Body.BodySphere_v2
2019-06-13 - pandur

Ops.Exp.Gl.Physics.Body.BodySphere_v2 renamed to Ops.Exp.Gl.Physics.Body.PhysicsSphere_v2
2019-06-13 - pandur

Ops.Exp.Gl.Physics.Body.PhysicsSphere_v2 renamed to Ops.Physics.Body.PhysicsSphere_v2
2020-07-30 - pandur

Ops.Physics.Body.PhysicsSphere_v2 renamed to Ops.Physics.Cannon.CannonPhysicsSphere_v2
2022-06-07 - pandur