CompoundShape class final

A collider built from multiple locally positioned child shapes.

This maps to Jolt's static compound shape on Android. The owning RigidBodySettings.transform remains the node's world transform; each PositionedShape is placed in local coordinates inside that node.

Inheritance

Constructors

CompoundShape(List<PositionedShape> children)
Creates a compound collider from at least one child shape.
const

Properties

children List<PositionedShape>
Child shapes in local node coordinates.
final
hashCode int
The hash code for this object.
no setterinherited
nativeA double
First native shape parameter.
no setteroverride
nativeB double
Second native shape parameter.
no setteroverride
nativeC double
Third native shape parameter.
no setteroverride
nativeType int
Internal identifier passed to the native Jolt adapter.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited