1
This commit is contained in:
@@ -12,6 +12,7 @@ namespace BITFALL.Props
|
||||
{
|
||||
[SerializeField] private SpringEulerAngle spring=new();
|
||||
[SerializeField] private Optional<int> maxSpring;
|
||||
[SerializeField] private Optional<LocationAdditive> locationAdditive;
|
||||
public IUnityEntity UnityEntity => null;
|
||||
public Rigidbody Rigidbody => null;
|
||||
private Vector3 initialEulerAngles;
|
||||
@@ -25,6 +26,10 @@ namespace BITFALL.Props
|
||||
{
|
||||
spring.Update(Time.fixedDeltaTime,initialEulerAngles);
|
||||
transform.localEulerAngles = spring.value;
|
||||
if (locationAdditive.Allow)
|
||||
{
|
||||
locationAdditive.Value.AddEuler(spring.value-initialEulerAngles);
|
||||
}
|
||||
}
|
||||
public void GiveDamage(DamageMessage message)
|
||||
{
|
||||
|
Reference in New Issue
Block a user