LSBUGPG / UnityLibrary

A library of useful Unity components and test scenes
GNU General Public License v3.0
0 stars 0 forks source link

Moving platforms, and making the player move with them #67

Closed notleeandrew closed 7 years ago

notleeandrew commented 7 years ago

this code will allow you to make the player move alongside making it make the player a child of the moving platform whilst colliding with the moving platform

gamingdevotee commented 7 years ago

This code seems to work and solves a couple of issues I was having (most notably with the player freaking out whilst it moves)

My two stars

  1. It functions on something that is rather hard to do laying out the groundwork.
  2. The code seems to be rather simple to implement overall.

My wish If the code could be explained a bit more (maybe through small comments) to make it easier to understand as there were certain bits of the code that I don't clearly understand.

ClockworkAlexander commented 7 years ago