Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [AGK VR] AGKVR.SetPlayerRotation() not working?

Author
Message
nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 22nd Nov 2017 21:03
No values seem to work when setting player rotation.
I can use AGKVR.RotatePlayerLocalY(90) for instance and that works.

However, without AGKVR.SetPlayerRotation() I've ground to a halt.
Not sure if it ever worked or the latest Steam VR API has broken it?

I've tried switching on / off the LockPlayer turn and pitch to no avail.
Ron Erickson
Moderator
21
Years of Service
User Offline
Joined: 6th Dec 2002
Location: Pittsburgh, PA, USA
Posted: 25th Nov 2017 02:38
Hi nz0,
Sorry. I just saw this message. I really don't think that an update with the Steam VR API would have broken this command because the player structure is all an internal AGKVR thing. I am pretty sure that it was all working fine though.... Do you have an example that you can provide with the issue?

Thanks!
a.k.a WOLF!
nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 25th Nov 2017 14:44
Hi Ron,

I've never used it until now when i need to orientate the player in the correct starting position.
I'm experimenting with a calibration function which I use to reset the player on start (and will be available on demand in game eventually).



If I call this on a keypress say, then it will rotate the player using the AGKVR.RotatePlayerLocalY(90) command fine.
The AGKVR.SetPlayerPosition(0,0,0) does seem to work, but the AGKVR.SetPlayerRotation(0,0,0) doesn't do anything visually nor shows any change in the logged values.
I have tried different values in AGKVR.SetPlayerRotation and with/without calling the various reset and update functions.

I tried altering the AGKVR.LockPlayerTurn(0) and AGKVR.LockPlayerPitch(1) variously, but no difference.
AGKVR.SetTrackingSpace(0) doesn't seem to have any noticable effect either.

Cheers

smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 25th Nov 2017 15:25
agreed, doesn't seem to do anything for me either.
life's one big game
spec= 4ghz, 16gb ram, AMD R9 2700 gpu
Ron Erickson
Moderator
21
Years of Service
User Offline
Joined: 6th Dec 2002
Location: Pittsburgh, PA, USA
Posted: 27th Nov 2017 18:49
Sorry for not responding sooner! I was on vacation and got swamped with work when I returned. I'm hoping to have a look at this later this week along with finishing the AGKVR update.

Ron
a.k.a WOLF!
nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK

Login to post a reply

Server time is: 2024-04-16 09:38:52
Your offset time is: 2024-04-16 09:38:52