Created
March 29, 2021 10:28
-
-
Save niwaniwa/f9a9587b816f6d6e2a21ca6e89cb0fcf to your computer and use it in GitHub Desktop.
VRC Scene Smooth Shift
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
//// Scene Smooth Shiftの中身を予想して作成 | |
using System; | |
using UdonSharp; | |
using UnityEngine; | |
using VRC.SDKBase; | |
using VRC.Udon; | |
public class SceneSmoothSift : UdonSharpBehaviour | |
{ | |
[SerializeField] private Transform shiftStart, shiftEnd; | |
[SerializeField] private float ShiftSpeed; | |
public void FixedUpdate() | |
{ | |
transform.position = Vector3.Lerp(shiftStart.position, shiftEnd.position, 0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment