Skip to content

Instantly share code, notes, and snippets.

Avatar
💯
Work-Work-Work-Work-Work-Work-Work-Work-Work-Work-Work-Work-Work-Work-Work-Work

SPHYNX gakkossphynx

💯
Work-Work-Work-Work-Work-Work-Work-Work-Work-Work-Work-Work-Work-Work-Work-Work
  • TR
View GitHub Profile
@gakkossphynx
gakkossphynx / MovingPlatform.cs
Created Mar 15, 2022 — forked from zalo/MovingPlatform.cs
Physics-Based Unity Player Controller
View MovingPlatform.cs
using UnityEngine;
public class MovingPlatform : MonoBehaviour {
public float timeInterval = 5f;
public AnimationCurve XMotion;
public AnimationCurve YMotion;
public AnimationCurve ZMotion;
public bool PingPong = true;
float platformTime;