AmmoBodyCollision Op

AmmoBodyCollision

Check if physics bodies are colliding


This op will allow you to output a Boolean state change (true/false) if the specified physics objects have collided together.
You may also just input a single object name and get a result whenever the object collides with any other physics object in your scene.
Using the "Match" options you can get multiple collisions or collisions of groups (i.e. some ball collides with the southern wall).


Edit Documentation

Full Name
  • Ops.Extension.AmmoPhysics.AmmoBodyCollision
Visibility
  •  Extension Op - Visible to all users
License
  • MIT
AuthorMaintained by Team


 

INPUT PORTS


update (Trigger)

execute operation

Name 1 (String)

name of physics object

Match Name 1 index (Number:integer )

match name 1

Name 2 (String)

name of physics object (optional)

Match Name 2 index (Number:integer )

match name 2 (if set)

OUTPUT PORTS


Next (Trigger)

next

Colliding (Number)

collision detected (Boolean)

Num Collisions (Number)

number of collisions

Collisions (Array)

array of collision objects


Patches using AmmoBodyCollision

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2022-04-01 14:44
Ops.User.pandur.AmmoBodyCollision renamed to Ops.Dev.AmmoBodyCollisionuser avatarpandur - 2022-04-01 16:38
Ops.Dev.AmmoBodyCollision renamed to Ops.Physics.Ammo.AmmoBodyCollisionuser avatarpandur - 2022-05-09 11:51
add matching parameters to name1/name2user avatarstephan - 2022-10-04 15:49
renameOps.Physics.Ammo.AmmoBodyCollision renamed to Ops.Extension.AmmoPhysics.AmmoBodyCollisionuser avatarpandur - 2023-09-14 09:38