External Motions
Creating new external motion modules
using System;
namespace UHFPS.Runtime
{
[Serializable]
public class TestExternalMotion : ExternalMotionData
{
public override string Name => "Test Motion";
public override ExternalMotionModule GetPosition => null;
public override ExternalMotionModule GetRotation => null;
}
}using System;
using UnityEngine;
namespace UHFPS.Runtime
{
[Serializable]
public class TestExternalMotion : ExternalMotionData
{
[Serializable]
public struct TestSettings
{
public Vector3 Force;
public float Duration;
}
public TestSettings PositionSettings;
public TestSettings RotationSettings;
public override string Name => "Test Motion";
public override ExternalMotionModule GetPosition => null;
public override ExternalMotionModule GetRotation => null;
}
}
Last updated