|On this page|
This node creates an agent layer that consists of simple static shapes such as capsules and boxes. The resulting layer is suitable for use as an agent’s collision layer.
The agents to add the new layer to.
The name of the new layer.
Copy Source Layer
Specifies whether to use an existing layer as the starting point for the new layer. All of the shape bindings from the Source Layer will be copied.
If Copy Source Layer is enabled, specifies the name of an existing layer to copy shape bindings from.
Keep External References
If new shapes are being added to the shape library, a copy will first be made so that the modifications do not affect other agents that reference the original shape library (such as those in the input SOP’s geometry). If this option is enabled and the original shape library referenced a file on disk, the new shape library will be marked as including the original shape library. In this situation, when the agent is saved to a geometry file, the path to the original shape library is saved out along with any new shapes that were not included from the original library. Otherwise, the entire shape library will be saved to the geometry file and the original shape library file is not referenced.
Set as Current Layer
Sets the current layer of each agent to the new layer.
Set as Collision Layer
Sets the collision layer of each agent to the new layer.
Configure RBD Properties Per Shape
The number of collision shapes that should be added.
Specifies which transform in the rig the shape should be attached to.
Specifies the translation of the shape in local space.
Specifies the rotation of the shape about the xyz axes in local space.
Specifies the size of the shape in local space.
Specifies the local pivot point for rotations.
Specifies the type of primitive shape to create.
Specifies the SOP geometry to use for the shape if the shape type is Custom.
Keep Position When Attaching
When Shape is Custom, specifies that the new shape should be transformed before being added to the shape library so that its current world position will be maintained after being attached to the Transform Name.
Specifies the shape’s density when Configure RBD Properties Per Shape is enabled. The mass of an object is its volume times its density.
Specifies how liable the shape is to spin when Configure RBD Properties Per Shape is enabled.
Specifies the object’s elasticity when Configure RBD Properties Per Shape is enabled.
Specifies the object’s coefficient of friction when Configure RBD Properties Per Shape is enabled.
Agent primitives with additional layer and shapes.
The following examples include this node.
This example file demonstrates how to set up "animated static" agents for the crowd solver. These agents follow SOP-level animation and can be used for avoidance or turned into ragdolls.
This example demonstrates using heightfields for terrain adaptation in the crowd solver, and for collisions against ragdolls in the Bullet solver.
This example demonstrates how to set up a partial ragdoll, where a subset of the agent’s joints are simulated as active objects by the Bullet solver and the remaining joints are animated.
This example demonstrates how to set up constraints to attach a ragdoll to an external object, and how to use motors to drive an active ragdoll with an animation clip.
This example file demonstrates how the built-in trigger types for the Crowd Trigger DOP can be used.