Tools / TumbleRig / Constraints & Drivers / Nodes

Apex Collisions

Keeps spheres and chains on joints apart and out of colliders: a ground plane, boxes, spheres and capsules.

Access
Free
Node version
1.4
Package
TumbleRig
Houdini
22.0+
What you can make with it

Overview

Bodies sit on joints. A row's Shape is Sphere (a sphere on each joint) or Chain (a capsule from each joint to the nearest joint of the same row above it: tentacles, tails, ropes). Bodies push each other apart (the bigger one moves less), and colliders push them out. A Chain never pushes itself, and Taper to Tip narrows it toward its last joint. Spheres on joints further apart than twice their radius let a thin limb slip between them; a Chain

Move

The joint moves.

Move Around Parent

The joint moves but keeps its distance from its parent: it slides around it (eyes on a head).

Rotate Parent

The joint's parent turns so the body clears (a foot rolls when its ball meets a step, a toe bends).

Ground Plane

An endless floor at Height. With Follows Joint it rides that joint.

Collider Geometry

The pieces of a geometry become colliders. Source: the second input, or the character stream (Character Stream): pick one of its shape prims (Stream Shape: Primitives.shp, Base.shp ...). Each piece (its name attribute, or each connected piece) is fitted: Auto makes a flat piece a plane and the rest boxes; or choose Plane, Box, Sphere or Capsule. Pieces limits which ones collide. The stream geometry is the rest shape; with Follows Joint it rides that joint.

Colliders

Shapes you place by hand, in the world or on a joint (a fingertip, a ball, a moving platform).

Bodies (Collides With) on each collider: which bodies it pushes, a name pattern; * = all.

Collisions remembers where each body was pushed. Once a collider leaves, the body eases back to its joint over Release frames (and with Rebound swings past it and settles) instead of snapping back on the next frame; with Friction it holds on to what it touches. Play forward to see it: scrubbing past Max Gap starts again from the joints.

Collisions acts on the joints' final positions, so it stacks after Temporal and the other effects; on joints IK Spline places (its curve sets each joint) every joint of the chain can be a body. A joint below another body is left out when it follows that body (an FK child: its parent collides, it follows), and a collider cannot follow a joint a body moves.

In Animate the Collisions tool draws the spheres and the colliders; what touches shows in amber.

Parameters

Name

The name of the collisions node in the rig.

Bodies

Each row is one or more joints with a Shape, a Radius and a Response.

Shape

Sphere: a sphere of Radius on each joint. Chain: capsules joining each joint to the nearest joint of the row above it (one row 'tentacle*' makes a chain per tentacle). Chains Move.

Taper to Tip

A Chain's radius goes from Radius at its first joint to Tip Radius at its last.

Release (frames)

How long a body takes to come back to its joint once nothing pushes it: the push halves every this many frames. A collider still pushes it fully out the frame it arrives; only the letting go is smoothed. 0: back on the joint the next frame (1.3).

Rebound

With Release, the push becomes a spring: soft parts swing past their joint and settle. 0: a plain ease out.

Friction

A body touching the same collider or body as on the frame before holds on to its spot: a hand sweeping across a cheek drags the skin along, a foot on the ground stops skating, a turning collider turns what touches it. How hard it grips grows with how deep its joint is pressed in. 0: slippery (1.3). Each collider has its own Friction that multiplies this.

Max Drag (radii)

How far friction carries a body from its joint, in its own radius, before it slips.

Own Release / Own Friction

A Bodies row's own value instead of the node's (a foot that lets go at once, a cheek that holds on).

Update Mode

When the memory steps, as in Temporal. Release, Rebound and Friction show while playing forward; a jump further than Max Gap (scrubbing) starts again from the joints. Off: every frame is 1.3's answer.

Allow Overlap at Rest

Bodies that already overlap in the rest skeleton may keep that overlap, no more, so limbs that start out inside each other stay as modelled (the roots of eight tentacles) and pushes fade in toward them. Colliders still push them. Off: a pile of balls spreads.

Chain Stiffness

How far a push on one joint of a Chain spreads to its neighbours: the chain bends around what it touches instead of making a corner at that joint. 0: only the pushed joints move. Raise Iterations (8) with it.

Push Sideways Only

Bodies push each other apart in the ground plane only, so feet stay on the ground. Colliders always push along their surface.

Iterations

Rounds of pushing.

Amount

How much of the overlap each round takes away. 1: they only touch.

Recipes

Version notes

  • Apex Collisions 1.4: Release, Rebound, Friction (bodies remember their push between frames)
  • Apex Collisions 1.3: Chain Stiffness (0.3) and Allow Overlap at Rest (was Skip Pairs Touching at Rest)
  • Apex Collisions 1.3: works on joints IK Spline places; Chain bodies (capsules), Skip Pairs Touching at Rest
  • Batch A families: the empty settings helpers of their compiled builders no longer cook (21 builders)
  • Compiled-only rollout, batch A (assets and graphs): the 20 asset versions of b79707d49 run their main script compiled
  • Node cache before every Output of 96 assets: a reopened scene reads a node's result without cooking what is above
  • Precompile + share the menu scripts: fkik_menu, space_menu, Apex Collisions
  • Display tap: switchif_viz reads has_viz_shp without an expression, in every asset
  • apex_collisions 1.2: no more cycles from rig loops (IK, constraints, chases)
  • Pose store frame 1001: no more time-dependent Show Invoked branch
  • apex_collisions 1.2: Collider Geometry can come from the character stream (Source + Stream Shape), 1.1 untouched
  • Collisions examples on 1.1: a foot rolls onto a step (Collider Geometry, Rotate Parent / Move), eyes that dodge a poke (collider on the fingertip, Move Around Parent); the 1.17 recipes moved to 1.1