So ive been following a tutorial to make it so when a playerobject goes onto a moving platform, it moves with that platform. The issue is that my playerobject doesnt move with the platform, ive tried alot and still cannot get it to work, Is there anyone who could help me out?
My player object has a Ridid Body and Capsule Collider with isTrigger unticked. My platform has a Box Collider with isTrigger unticked. The code below is attached to the platform.Code for moving with platform
Ive tried doing the exact same on another unity project and still getting the same issue.