Created
May 6, 2018 05:25
-
-
Save tomblenz/70229658aadde7200dc28da41538739b to your computer and use it in GitHub Desktop.
Conveyer belt physics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var movement = transform.forward * speed * Time.deltaTime; | |
belt.position -= movement; | |
belt.MovePosition (belt.position + movement); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment