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
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.