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 / [SOLVED] Problem with Move3DPhysicsCharacterController

Years of Service
User Offline
Joined: 16th Feb 2022
Posted: 25th May 2023 02:11
I'm trying to get the character controller to move in the direction of my joystick, but it moves in one direction forever. Here's my code, there are no assets so it should be easy to test in an empty project:

Is there anything I'm doing wrong here?

The author of this post has marked a post as an answer.

Go to answer

Virtual Nomad
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 25th May 2023 02:20 Edited at: 25th May 2023 02:31
This post has been marked by the post author as the answer.
you're constantly telling it to move (at posx/z + joyx/z values).

the command isn't like SetObjectPosition() where you would need to account for it's current position plus any offset, it's a (relative) Move, so, just:

meanwhile, the Physics Demos attached HERE should shed more light.

Login to post a reply

Server time is: 2023-12-05 08:12:56
Your offset time is: 2023-12-05 08:12:56