fix: some bad idea
This commit is contained in:
@@ -10,7 +10,7 @@ public class RigidBody2D : Behaviour2D, IRigidBody2D, IFirstFrameUpdate, ILastFr
|
||||
|
||||
public IPhysicsMaterial2D Material { get; set; } = new PhysicsMaterial2D(0f, 0f);
|
||||
|
||||
public Vector2D Velocity { get => IsStatic ? Vector2D.Zero : field; set => field = IsStatic ? Vector2D.Zero : value; } = Vector2D.Zero;
|
||||
public Vector2D Velocity { get; set; } = Vector2D.Zero;
|
||||
public float AngularVelocity { get; set; } = 0f;
|
||||
public bool IsStatic { get; set; } = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user