Jump to content

ga1pi2ga

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by ga1pi2ga

  1. so i noticed that in my application the button doesn't move to the edge of the screen when the app gets full-screened

    what can i do?

    i am using this:

    auto Quit_b = CreateButton("Quit", window->ClientSize().x - 125, y, 120, 30, ui->root);

     

  2. 19 hours ago, Jonathan Member said:

    I just preordered if you have any beta keys left I’d love one so I can use it myself. If you do not have any I’m happy to wait until release whenever that may be :)

    i second this

    sorry if i am a bit impatient (also hi white theme users )

  3. please ignore the previous post figured it out

    --Update offset position
    	local pos = VR:GetOffset()
    	local d = self.targetoffset:DistanceToPoint(pos)
    	local speed = 2.0
    	if speed>d then speed=d end
    	pos = pos + (self.targetoffset - pos):Normalize() * speed
    	local arot = Vec3(0,avr,0) --avr is addon rotation
    	VR:SetOffset(pos,arot)

     

    • Like 1
  4. okay now i just cannot teleport outside of a small area otherwise the rotation works fine

    function Script:UpdateWorld()
    
    	VR:SetOffset(0,0,0,0,avr,0)
    
    	--teleporting feedback
    	if VR:GetControllerButtonDown(VR.Right,VR.AButton) then
    	VR:TriggerHapticPulse(VR.Right,50)
    	end
    	--player turning right
    	if VR:GetControllerAxis(VR.Right,VR.TouchpadAxis).x > 0.15 then
    		VR:TriggerHapticPulse(VR.Right,20)
    		avr=avr+5
    	end
    	--player turning left
    	if VR:GetControllerAxis(VR.Right,VR.TouchpadAxis).x < -0.15 then
    		VR:TriggerHapticPulse(VR.Left,20)
    		avr=avr-5
    	end

     

  5. has anyone figured out thumb stick turning in vr? ,i have tried it but keep on getting a error that i do not know how to fix (i am using VRplayer lua the only extra code is here:)

    	--teleporting feedback
    	if VR:GetControllerButtonDown(VR.Right,VR.AButton) then
    	VR:TriggerHapticPulse(VR.Right,50)
    	end
    	--player turning right
    	if VR:GetControllerAxis(VR.Right,VR.TouchpadAxis).x > 0.15 then
    		VR:TriggerHapticPulse(VR.Right,20)
    		player:turn(0,45,0)
    	end
    	--player turning left
    	if VR:GetControllerAxis(VR.Right,VR.TouchpadAxis).x < -0.15 then
    		VR:TriggerHapticPulse(VR.Left,20)
    		player:turn(0,-45,0)
    	end

    image.thumb.png.329b70b14665a6ed86d12c905d6ac04e.png

    image.thumb.png.a9f39a7897a9c034678780d5d80a6162.png

×
×
  • Create New...