Skip to content

Simulation

finnTE edited this page Oct 20, 2018 · 6 revisions

Collisions and triggers

The unity collision detection system can be used to trigger MIDI events.

There are collider components for all the basic shapes Box Collider, Sphere Collider, Capsule Collider etc. For custom meshes you can use a Mesh Collider.

The Collider Input Klak node issues events when objects collide or makes contact with triggers.

Rigidbody Out

Unity features a dynamics simulation system. Just attach a Rigidbody component to any 3D object you want to have participating in the simulation. Global dynamics simulation settings can be edited in the Physics settings (Edit > Project Settings > Physics).

To influence the dynamics simulation with a Klak patch use the Rigidbody Out node.

Transform Input

Use the Transform Input node to track changes to the position and rotation of a rigidbody, and patch to e.g. Knob Out nodes.