PositionedModel class final

A GLB model placed in a local node coordinate system.

The model follows the owning StageObject's transform while keeping this local offset. This mirrors the same idea as PositionedShape for physics.

Constructors

PositionedModel({required RenderModelAsset asset, Vector3 position = Vector3.zero, Quaternion rotation = Quaternion.identity})
Creates a locally positioned render model part.
const

Properties

asset RenderModelAsset
Loaded reusable model asset.
final
hashCode int
The hash code for this object.
no setterinherited
position Vector3
Local position relative to the owning node origin.
final
rotation Quaternion
Local rotation reserved for future renderer-side child transforms.
final
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
toComponent(RenderModelController controller) RenderModelComponent
Creates a component that can be attached to a StageObject.
toString() String
A string representation of this object.
inherited

Operators

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