PositionedShape class final
A collider shape placed in a local node coordinate system.
position and rotation are relative to the owning rigid body transform. Use this to build compound colliders from multiple simpler shapes.
Constructors
- PositionedShape({required ColliderShape shape, Vector3 position = Vector3.zero, Quaternion rotation = Quaternion.identity})
-
Creates a locally positioned collider part.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- position → Vector3
-
Local position relative to the owning node/body origin.
final
- rotation → Quaternion
-
Local rotation relative to the owning node/body orientation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → ColliderShape
-
Local collider geometry.
final
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