CannonPhysicsSphere_v2 Op

CannonPhysicsSphere

This op is deprecated!

It will not receive any updates

Physical Sphere Body


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


Full Name
  • Ops.Extension.CannonJs.Deprecated.CannonPhysicsSphere_v2
Visibility
  •  Extension Op - Visible to all users
License
  • MIT
AuthorgithubMaintained by Team


Example Patch Physics Sphere Example

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

Open In Editor

INPUT PORTS


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 (Number: boolean)

Enable to render sphere to screen

Reset (Trigger)

Reset physics

OUTPUT PORTS


Next (Trigger)

Trigger out

Out Radius (Number)
X (Number)

X position

Y (Number)

Y position

Z (Number)

Z position

Ray Hit (booleanNumber)

Outputs true if a ray hits

Collision (Trigger)

Trigger out when colliding with another physics object


Patches using CannonPhysicsSphere_v2

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2019-03-14 19:17
Ops.Exp.Gl.Physics.Body.Sphere_v2 renamed to Ops.Exp.Gl.Physics.Body.BodySphere_v2user avatarpandur - 2019-06-13 10:15
Ops.Exp.Gl.Physics.Body.BodySphere_v2 renamed to Ops.Exp.Gl.Physics.Body.PhysicsSphere_v2user avatarpandur - 2019-06-13 10:17
Ops.Exp.Gl.Physics.Body.PhysicsSphere_v2 renamed to Ops.Physics.Body.PhysicsSphere_v2user avatarpandur - 2020-07-30 09:17
Ops.Physics.Body.PhysicsSphere_v2 renamed to Ops.Physics.Cannon.CannonPhysicsSphere_v2user avatarpandur - 2022-06-07 09:10
Ops.Physics.Cannon.CannonPhysicsSphere_v2 renamed to Ops.Deprecated.Physics.Cannon.CannonPhysicsSphere_v2user avatarpandur - 2022-12-14 09:51
deprecationop Ops.Extension.CannonJs.CannonPhysicsSphere_v2 was deprecateduser avatarpandur - 2024-10-21 13:46