Skip to content

Instantly share code, notes, and snippets.

@niwaniwa
Created March 29, 2021 10:28
Show Gist options
  • Save niwaniwa/f9a9587b816f6d6e2a21ca6e89cb0fcf to your computer and use it in GitHub Desktop.
Save niwaniwa/f9a9587b816f6d6e2a21ca6e89cb0fcf to your computer and use it in GitHub Desktop.
VRC Scene Smooth Shift
//// 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