AssetColliderGeometry3D class final
Triangles from the engine's loaded ModelAssets. A model not loaded yet is loaded through assets (a renderer such as just_graphics_engine registers the loader for AssetType.model).
- Implemented types
Constructors
- AssetColliderGeometry3D(AssetManager assets)
-
Geometry from
assets.
Properties
- assets → AssetManager
-
The engine's assets.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
forget(
String model) → void -
Forgets what it kept of
model— its meshes merged, that it was asked for — so the next ask reads the model's triangles again (it was loaded again; ColliderShapes3D.forgetModel calls this). -
geometryOf(
String model, String meshName) → ModelGeometry? -
The triangles of
model's meshmeshName(every mesh merged when it is empty), in the model's space; null while they are not there yet — the model still loading — or when there are none. The system asks again each step until it gets them.override -
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
Static Methods
-
merge(
List< ModelGeometry> parts) → ModelGeometry? -
partsas one geometry; null when there are none.