Cannon Op

Cannon

This op is deprecated!

It will not receive any updates

shoot physics objects


Use a trigger to spawn a new physics sphere object. This OP lives in a Physics World set by the world op ( Ops.Physics.World">https://cables.gl/op/Ops.Physics.World) .


Full Name
  • Ops.Extension.CannonJs.Deprecated.Cannon
Visibility
  •  Extension Op - Visible to all users
License
  • MIT
AuthorgithubMaintained by TeamJavascript Libraries


Example Patch Cannon Op example

it shoots physics objects

Open In Editor

INPUT PORTS


Exec (Trigger)

connect underneath World op

Mass (Number)
Radius (Number)
Render (Number: boolean)
Pos X (Number)

spawn position - X axis location

Pos Y (Number)

spawn position - Y axis location

Pos Z (Number)

spawn position - Z axis location

dir X (Number)

direction on X axis

dir Y (Number)

direction on Y axis

dir Z (Number)

direction on Z axis

Speed (Number)

speed of spawned object towards the direction goal

Reset (Trigger)

reset cannon op

Spawn (Trigger)

spawn an object

OUTPUT PORTS


Next (Trigger)
Out Radius (Number)

Radius of object - handy to connect to a rendered geometry

X (Number)

location of X axis last spawned object

Y (Number)

location on Y axis of last spawned object

Z (Number)

location of Z axis last spawned object

Index (Number)

spawned object index

Collision (Trigger)

Patches using Cannon

  • Examples
  • Public
  • My Patches

Changelog


Ops.Exp.Gl.Physics.Cannon renamed to Ops.Physics.Cannonuser avatarpandur - 2020-07-30 09:17
Ops.Physics.Cannon renamed to Ops.Physics.Cannon.Cannonuser avatarpandur - 2022-06-07 09:07
Ops.Physics.Cannon.Cannon renamed to Ops.Deprecated.Physics.Cannon.Cannonuser avatarpandur - 2022-12-14 09:41
deprecationop Ops.Extension.CannonJs.Cannon was deprecateduser avatarpandur - 2024-10-21 13:45