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 for members of team CannonPhysics, is deprecated
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


Changelog

Patches using CannonPhysicsSphere_v2

  • Examples
  • Public
  • My Patches