HANDLEBAR 3D

SimpleCode

Main_Hand = findNode('Main_Hand')

def AttachLight():
    Main_Hand.setTransformMatrix(Maincontroller.getWorldMatrix(), false)

def PowerLight():
    selectVariantSet('Light')

def ChangeColor():
    selectVariantSet('Paint')
    print "Color Changed"


Maincontroller = vrOpenVRController("Controller0")
Maincontroller.connectSignal("controllerMoved", AttachLight)
Maincontroller.connectSignal("triggerPressed", ChangeColor)
Maincontroller.connectSignal("touchpadPressed", PowerLight)

print "VR Loaded"