API reference
API reference
Select your platform
No SDKs available
No versions available

SpatialInterface

SpatialInterface

open class SpatialInterface

Constructors

NameSummary
SpatialInterface
constructor()

Types

NameSummary
Companion
object Companion

Properties

NameSummary
appPtr_
var appPtr_: Long
dataModel
lateinit var dataModel: DataModel
networking
var networking: NetworkingBase?

Functions

NameSummary
applyHapticFeedback
fun applyHapticFeedback(hand: Hand, amplitude: Float, duration: Long, frequency: Float)
Applies the given haptic feedback to both controllers.
create
fun create()
createPhysicsObject
fun createPhysicsObject(entity: Entity, shape: String)
dataModelReset
fun dataModelReset()
deletePhysics
fun deletePhysics(entity: Entity)
destroy
fun destroy()
enableAABBDebugLines
fun enableAABBDebugLines(enabled: Boolean)
Toggles debug lines for AABB(Axis Aligned Bounding Boxes) around each scene object.
enableInput
fun enableInput(enabled: Boolean)
enablePhysicsDebugLines
fun enablePhysicsDebugLines(enabled: Boolean)
Toggles debug lines for visualization of the physics simulation. The color of the lines correspond to the state of the physics objects.
init
fun init(ctx: <Error class: unknown class>, apertures: Boolean, requiredOpenXRExtensions: List<String>)
networkingTick
fun networkingTick()
runMainThreadWorkItems
fun runMainThreadWorkItems()
sceneUpdateTickTime
fun sceneUpdateTickTime()
setGravity
fun setGravity(x: Float, y: Float, z: Float)
tick
fun tick(resumed: Boolean)
tickAnimation
fun tickAnimation()
tickControllers
fun tickControllers()
tickDataModel
fun tickDataModel()
tickDataModelWebserver
fun tickDataModelWebserver(activity: <Error class: unknown class>)
tickPhysics
fun tickPhysics()
tickPointers
fun tickPointers()
tickTransformSystem
fun tickTransformSystem()
tickUpdatePhysicsState
fun tickUpdatePhysicsState()

Companion

object Companion
Did you find this page helpful?
Thumbs up icon
Thumbs down icon