torque.rest

A weak swing back to each agent's rest angle, felt only where the field is faint.

torque.rest: (layout: OrientationLayout) => AgentTorque

Import sim from shaders/std and use sim.agentForces.torque.rest.

Example

torques: [torque.alignToField(simLayout), torque.rest(simLayout)]

See also