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 / simple 3d movement

Author
Message
qwedsa
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location:
Posted: 31st Jul 2013 07:26 Edited at: 31st Jul 2013 08:43
could someone please explain why this doesnt work?

the turn buttons go faster and faster while they're pressed

qwedsa
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location:
Posted: 31st Jul 2013 08:51
i switched from virtual buttons to virtual joystick and the movement works just fine. nvm

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 31st Jul 2013 09:13
RotateCameraLocalX( cameraID, amount )
is relative not absolute.
amount is only the step you want turn.
Quote: "amount - The angle to rotate on the local X axis in degrees"
qwedsa
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location:
Posted: 31st Jul 2013 21:38
if i do local rotation around x/y, the local z axis gets offset. is there an easy way to make sure the z rotation is zero so the player can smoothly look around while not getting tilted?

lilpissywilly
AGK Developer
13
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 31st Jul 2013 21:47 Edited at: 31st Jul 2013 22:00
Edit:

Never mind, thought you were referring to an object not the camera.

Edit #2:

Do you have an object representing the player?

Edit #3:

Maybe like this:



My hovercraft is full of eels
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 1st Aug 2013 03:03
Perhaps it is the roll parameter? That would cause this. Make sure you set it to 0.

Login to post a reply

Server time is: 2024-04-27 11:32:01
Your offset time is: 2024-04-27 11:32:01