Added Observation Scene to show the Replay
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Unity.Cinemachine.Samples
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper class to set the interpolation of a rigidbody.
|
||||
/// </summary>
|
||||
[RequireComponent(typeof(Rigidbody))]
|
||||
public class RigidbodyInterpolationSetter : MonoBehaviour
|
||||
{
|
||||
Rigidbody m_Rigidbody;
|
||||
void Start() => m_Rigidbody = GetComponent<Rigidbody>();
|
||||
|
||||
public void SetInterpolation(bool on) =>
|
||||
m_Rigidbody.interpolation = on ? RigidbodyInterpolation.Interpolate : RigidbodyInterpolation.None;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user