Neuro-VISOR  0.2.0
Visualize and interact with computational simulations using a virtual reality interface
C2M2.Simulation.Interactable Class Referenceabstract

Interface for interaction scripts More...

Inherits MonoBehaviour.

Inherited by C2M2.Simulation.Simulation< ValueType, VizType, RaycastType, GrabType >.

Public Member Functions

abstract void SetValues (RaycastHit hit)
 Require derived classes to know how to receive an interaction event More...
 
abstract float GetSimulationTime ()
 Return the current timestep for the simulation More...
 

Detailed Description

Interface for interaction scripts

Interactable provides an interface so that interaction scripts can affect a Simulation without needing to know its type.

Member Function Documentation

◆ GetSimulationTime()

abstract float C2M2.Simulation.Interactable.GetSimulationTime ( )
pure virtual

Return the current timestep for the simulation

Returns

Implemented in C2M2.Simulation.Simulation< ValueType, VizType, RaycastType, GrabType >.

◆ SetValues()

abstract void C2M2.Simulation.Interactable.SetValues ( RaycastHit  hit)
pure virtual

Require derived classes to know how to receive an interaction event

In order to affect live simulations, this method must know how to add values between 0 and 1 to the current simulation values


The documentation for this class was generated from the following file: