I’m a complete beginner to Unity and coding and everything (as in, before 2 months ago I had never opened Unity) but I have also started a Uni course that was advertised as being for beginners and I feel like I’m drowning.
On to my problem, I am making a first person platformer using CharacterController, I have put in moving platforms using the oscillator script from the Project Boost course but my Player won’t stay on the platform.
I have tried parenting the Player to the platform which didn’t work and I have since read that the CharacterController shouldn’t be made a child of anything as it doesn’t like and can screw with things.
My most recent attempt was by using a Raycast to detect if the Player is on a moving platform by checking the tag of the platform through an if else statement , if the player is on a moving platform then isOnPlatform was true and set the players position to that of the moving platform offset on the Y slightly so the player actually stood on the platform, else isOnPlatform was false.
This gave me my closest success but once on the platform, the player was stuck there and couldn’t get off.
Any help or tips would be greatly appreciated.