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

CastInputForwardSystem

CastInputForwardSystem

class CastInputForwardSystem(val vrActivity: VrActivity) : SystemBase
CastInputForwardSystem manages the communication between a Spatial SDK app and the MQDH Cast window. Per execute() tick it retrieves the updated mouse/keyboard state info from MQDH Cast and processes the info to manipulate the camera/send input down into the Spatial SDK application.

Constructors

NameSummary
CastInputForwardSystem
constructor(vrActivity: VrActivity)

Types

NameSummary
Companion
object Companion

Properties

NameSummary
movementSpeed
var movementSpeed: Float
pitchSensitivity
val pitchSensitivity: Float = 100.0f
shiftMultiplier
var shiftMultiplier: Float
systemManager
lateinit var systemManager: SystemManager

The system manager that this system is associated with.
vrActivity
val vrActivity: VrActivity

The VrActivity of the Spatial SDK application.
yawSensitivity
val yawSensitivity: Float = 100.0f

Functions

NameSummary
associateSystemManager
fun associateSystemManager(systemManager: SystemManager)

Associates this system with a system manager, used in the Spatial SDK.
calculateDirectionVector
fun calculateDirectionVector(normalizedX: Double, normalizedY: Double, fovLeft: Double, fovRight: Double, fovUp: Double, fovDown: Double): Vector3
delete
open fun delete(entity: Entity)

System should do any housekeeping based on entity being removed from the scene
destroy
open override fun destroy()

System should clean up any and all resources for shutdown
destroyPanelAppStreamer
fun destroyPanelAppStreamer()
equals
open operator override fun equals(other: Any?): Boolean

Checks if this system is equal to another object.
execute
open override fun execute()

System should perform all the operations based on relevant entities.
getDependencies
open fun getDependencies(): SystemDependencies?

Returns the dependencies of this system.
getScene
fun getScene(): Scene

Returns the scene that this system is associated with.
hashCode
open override fun hashCode(): Int

Returns the hash code of this system.
onPause
fun onPause()
onResume
fun onResume()
setEnabled
fun setEnabled(enabled: Boolean)

Companion

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