Hey guys,
I am working on a game with movement similar to the game ASTRONEER.
Default ThirdPersonCharacter movement would be pretty good for me but unfortunately I can not manage to make it working in 3D. Also I am using DirGravity plugin to handle gravitation around planet.
I already tryed changing almost every setting in ThirdPersonCharacter and even rotate camera with quaternians. Nothing helped.
There is a short video showing my issue: https://youtu.be/HATsxaB5YVg
Hey, you can use the node “Make Rot from ZX” (not “XZ”), simply put ‘PlanetCenterLoc - ActorLoc’ in Z and ActorRotation in X (inputs must be normalized)
Thanks for the answer. Unfortunately I didn’t manage to make any progress. This is my first month into unreal so I still have much to learn.
Should it be connected to EventTick like I did it? Also my planet is at 0, 0, 0 position so there is no need to substract it from the player location.
There is one strange thing I noticed about the GetActorRotation node. When I press play, it starts on 0, 0, 0 but Yaw goes lower and lower every tick. Why is this?
Yes on the tick it should update the character rotation every frame, this is useful if the planet is small but may be called less often if the planet is big.
For the rotation on yaw I don’t know it can be caused by multiple things, have you tried to temporary disable the gravity plugin to see if that’s still happening? Also try to do a global blueprint search (CTRL+MAJ+F in any blueprint) and search for “actor rotation” , it will show you if the rotation is set somewhere in your code