GltfModelEntityTester


public final class GltfModelEntityTester


GltfModelEntityTester is a testing accessor used to inspect the internal state of a GltfModelEntity within a test environment.

It utilizes reflection to bridge the GltfModelEntity with the fake runtime, allowing tests to verify nodes, animations, and bounding box data that are otherwise encapsulated or tied to the underlying runtime implementation.

Summary

Public methods

final void

Creates and adds a TestGltfAnimation to the entity using the properties of the given GltfModelEntity.

final void

Creates and adds a TestGltfModelNode to the entity using the properties of the given GltfModelEntity.

boolean
equals(Object other)
final @NonNull BoundingBox

Configures the axis-aligned bounding box (AABB) of the glTF model in meters, relative to the model's local coordinate space.

int
final void

Configures the axis-aligned bounding box (AABB) of the glTF model in meters, relative to the model's local coordinate space.

Public methods

addAnimation

Added in 1.0.0-alpha16
public final void addAnimation(@NonNull TestGltfAnimation animation)

Creates and adds a TestGltfAnimation to the entity using the properties of the given GltfModelEntity.

This simulates the addition of a new animation to the underlying runtime entity.

Parameters
@NonNull TestGltfAnimation animation

The test animation feature containing the properties for the new TestGltfAnimation.

addNode

Added in 1.0.0-alpha16
public final void addNode(@NonNull TestGltfModelNode node)

Creates and adds a TestGltfModelNode to the entity using the properties of the given GltfModelEntity.

This simulates the attachment of a new node to the underlying runtime entity.

Parameters
@NonNull TestGltfModelNode node

The test node feature containing the properties for the new TestGltfModelNode.

equals

public boolean equals(Object other)

getGltfModelBoundingBox

Added in 1.0.0-alpha16
public final @NonNull BoundingBox getGltfModelBoundingBox()

Configures the axis-aligned bounding box (AABB) of the glTF model in meters, relative to the model's local coordinate space.

hashCode

public int hashCode()

setGltfModelBoundingBox

Added in 1.0.0-alpha16
public final void setGltfModelBoundingBox(@NonNull BoundingBox value)

Configures the axis-aligned bounding box (AABB) of the glTF model in meters, relative to the model's local coordinate space.