Hello, I am currently working on a third-person perspective action game. My end-game intention is to use directional gravity so that the player’s character can walk on a sphere. I will be having this sphere rotate.
I apologize in advance if any of what I type in this appears aggressive. (Emphasizing points by ALL CAPS to pinpoint non-negotiable aspects of the project as it stands)
I currently have my character’s movement just the way I want it while the sphere is standing still. Here’s the combination of facts that leads to the problem I am facing -
-
I will be starting out by using and editing the default third person character that the engine has pre-built. I will not be making a pawn or some arbitrary non-character actor.
-
Use Controller Rotation Yaw MUST BE DISABLED. (same is true of pitch and roll)
-
Ignore Base Rotation, Use Controller Desired Rotation, and Orient Rotation to Movement MUST ALL BE DISABELED.
-
Go ahead and create a flat-square platform and set it to rotate. Have the default third person character stand on this platform. If you have the above settings all set to disabled, you will see the character not matching the rotation of the platform.
What I am asking for is a way to get the character’s relative Z-axis (turn left/right) to match the platform as it is rotating beneath the character. (NOT the character’s world rotation) Almost like a way to emulate the character rotation if any of the above settings were to be set to true (without setting them to true of course).
I imagine that I would have to use some sort of raycast/line-tracing/impact normal method of some kind to get the character to rotate as desired but I cannot for the life of me seem to grasp how to go about doing this.
I am also willing to go into the character/movement C++ code and make edits as suggested if a blueprint solution is not available.
Lastly, the only rotation that I am trying to edit is the relative Z rotation (turning left/right) based on the rotation of the platform that the character is standing on. I am not looking to see the character lean in any particular direction.
I appreciate any assistance I can get in this matter!