playMaker

Author Topic: Changing movement axis upon entering a trigger?  (Read 307 times)

AdapeJones

  • Playmaker Newbie
  • *
  • Posts: 1
Changing movement axis upon entering a trigger?
« on: September 15, 2023, 02:28:16 PM »
I have a very simple 3D first person character controller (WASD) that I am slowly adding functionality to. I am currently attempting to create a functional ladder that works without a key input to “enter”, and relies instead on the player character entering a trigger collider on the ladder. Ideally, I would like the character upon entering this trigger to simply have their movement axis changed so that “W” and “S” would move the character along the Y axis (as relative to the ladder angle) rather than the Z axis. I currently have it almost working. I am able to climb up the ladder, but regardless of the ladders angle, I climb straight up on the Y axis. I have the axis vector set up as “Relative to” the ladder in question, which is rotated slightly. This does not seem to be reflected at runtime, instead always being true to the world XYZ. Any way to remedy this?
 
Thanks for any help offered!
« Last Edit: September 16, 2023, 07:19:41 PM by AdapeJones »