Scene

Represents a scene.

A scene manages a collection of Entity objects. Typically, a com.pico.spatial.core.container.SpatialContainer hosts a scene, and all 3D entities created within the container belong to that scene.

Functions

Link copied to clipboard
fun convexCast(shape: ShapeResource, origin: Vector3, orientation: Quat, direction: Vector3, length: Float, hitMode: CollisionCastHitMode, group: CollisionGroup, referenceEntity: Entity? = null): CollisionCastHitResults

Projects a convex shape for collision detection against all geometry in the scene.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun queryEntity(vararg conditions: EntityQueryCondition): List<Entity>

Queries a list of entities based on one or more conditions.

Link copied to clipboard
fun rayCast(origin: Vector3, direction: Vector3, length: Float, hitMode: CollisionCastHitMode, group: CollisionGroup, referenceEntity: Entity? = null): CollisionCastHitResults

Projects a ray for collision detection against all geometry in the scene.

Link copied to clipboard
fun <T : Event> subscribe(eventType: Class<T>, on: EventSource? = null, componentType: Class<out Component>? = null, subscriber: EventSubscriber<T>): Cancellable

Subscribes to an event of the specified type.

Link copied to clipboard
open override fun toString(): String