MeshInstance class final
One primitive drawn somewhere in the world.
Constructors
- MeshInstance(GpuPrimitive primitive, GpuMaterial material, Matrix4 world)
-
primitivewithmaterial, placed byworld.
Properties
- bounds → Aabb3
-
World-space bounds.
no setter
- castShadows ↔ bool
-
Casts shadows.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- localBounds ↔ Aabb3?
-
Its bounds in its own space when they are not its primitive's (a
posed skin's reach); null uses the primitive's.
getter/setter pair
- material ↔ GpuMaterial
-
How it looks. A shape whose look changes is given another.
getter/setter pair
- node ↔ int
-
The node of its model that placed it, or -1.
getter/setter pair
- primitive ↔ GpuPrimitive
-
What is drawn. A shape whose sizes change is given another.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skin ↔ SkinPalette?
-
A skinned instance's posed palette: when set (and the primitive is
skinned) it is drawn skinned.
getter/setter pair
- visible ↔ bool
-
Drawn at all.
getter/setter pair
- world → Matrix4
-
World from local.
final
Methods
-
markMoved(
) → void - world was changed in place: recompute bounds.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setWorld(
Matrix4 m) → void - Moves the instance.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited