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 / character controller again...

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 24th Nov 2015 19:41 Edited at: 25th Nov 2015 12:40
now I have gone back to my code and got the 3dphysics character ontroller working, I am wondering how would you use it to continuesly move the object,like in a platformer, if I simply put:



it moves once either way but no further
Hail to the king, baby!
Funnell7
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 24th Nov 2015 20:06
Try GetRawKeyState () instead...
Using AppGameKit V2 Tier 1
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 24th Nov 2015 20:27 Edited at: 24th Nov 2015 20:28
still no joy,does the exact same thing
Hail to the king, baby!
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 25th Nov 2015 12:16 Edited at: 25th Nov 2015 12:37
well, I have tried allsorts! Has anyone got a small example for me of using the 3d character control, moving it about with a virtual joystick and having it jump around?
Hail to the king, baby!
Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 25th Nov 2015 14:49 Edited at: 25th Nov 2015 15:12
Your walk velocity is too low, try 72.0
Also you will need to use GetRawKeyState () so it will call the Move3DPhysicsCharacterController() command
while the key is held down.

The coffee is lovely dark and deep,and I have code to write before I sleep.
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 25th Nov 2015 19:57 Edited at: 25th Nov 2015 19:58
okay, thanks for the help, I cannot seem to get it working within the editor, god knows why!! I created another project to try all I have so far along with your code, it seems to have a jittery issue:




But it is definately getting there!
Hail to the king, baby!
Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 26th Nov 2015 01:06
The variable on line 16 was misspelled, this caused the rotation not to work.
Moved positioning of camera to after Step3DPhysicsWorld().

The coffee is lovely dark and deep,and I have code to write before I sleep.
Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 7th Dec 2015 19:58
Did this code help is it working for you now?
The coffee is lovely dark and deep,and I have code to write before I sleep.
CodeMonkey
11
Years of Service
User Offline
Joined: 6th Mar 2013
Location: Ireland
Posted: 7th Dec 2015 20:37
New problem with the character controller..
I can't move on two axes simultaneously. The code below doesn't work. Instead it forgets about the first command and just moves on the X-Axis.

Login to post a reply

Server time is: 2024-11-25 13:16:19
Your offset time is: 2024-11-25 13:16:19