Input/Output

Takes the three different inputs, process the data and call the corresponding event. It also handles head transformation/navigation.

class src.io.Base(parent)

Bases: src.base.Base

enableHeadTrack(user)

Use Headtrack (instead of mouse) to control the scene Called from BlenderVR processor file

Parameters:user – BlenderVR User
flashlightButton()

Flashlight button was pressed

head_direction

Get the direction of the player’s head

Return type:mathutils.Vector (normalized)
head_orientation

Get the direction of the player’s head

Return type:mathutils.Quaternion
head_position

Get the direction of the player’s head

Return type:mathutils.Vector
is_flashlight
is_sonar
loop()
rockButton()

Rock button was pressed

sonarButton()

Sonar button was pressed