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
Full Name
- Ops.Extension.CannonJs.CannonPhysicsSphere_v2
- Extension Op - Visible to all users
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch Physics Sphere Example
This example uses a physics sphere that can be bounced by clicking on it.
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 (boolean Number)
Outputs true if a ray hits
Collision (Trigger)
Trigger out when colliding with another physics object
Patches using CannonPhysicsSphere_v2
Changelog
created op | ||
Ops.Exp.Gl.Physics.Body.Sphere_v2 renamed to Ops.Exp.Gl.Physics.Body.BodySphere_v2 | ||
Ops.Exp.Gl.Physics.Body.BodySphere_v2 renamed to Ops.Exp.Gl.Physics.Body.PhysicsSphere_v2 | ||
Ops.Exp.Gl.Physics.Body.PhysicsSphere_v2 renamed to Ops.Physics.Body.PhysicsSphere_v2 | ||
Ops.Physics.Body.PhysicsSphere_v2 renamed to Ops.Physics.Cannon.CannonPhysicsSphere_v2 | ||
Ops.Physics.Cannon.CannonPhysicsSphere_v2 renamed to Ops.Deprecated.Physics.Cannon.CannonPhysicsSphere_v2 |