Following the advice of JamesG I started a new project from scratch and have managed to make a pawn that travels in the direction pushed on the game controller stick. When there is no input it returns to pointing up and slowly drifts down. Currently the movement is pawn relative but the rotation is still world relative as I haven’t figured out the maths to make it a local rotation yet which I will need once I can work out how to travel between markers placed in the world. Equally I need to work out how to add acceleration/deceleration to the movement. I also don’t have any collision working yet.
In the video you’ll see that the lighting cuts out at a certain height in the world and I’mnot sure why. The only light source is a directional light so I’m not sure what controls . Any help would be greatly appreciated.
Tasks to work on for basic movement:
- Have the Pawn move along an axis that is an average of the nearest markers in the world
- When there is no directional input, have the pawn return to pointing upright as it currently does, but with a slow rotation, rather than an instant snap
- Add collisions
- Add acceleration/deceleration to the movement
- Add a button input to provide a speed boost when held
- Add some lag into the rotation speed so that it isn’t possible to instantly switch directions
- Add some drift into the deceleration so that the pawn continues to move in its last direction until it stops (at which point the downward drift should kick in).