public DronePhysicsBase(DronePhysicsSettings physicsSettings, Transform transform, Rigidbody2D rigidbody)
        {
            m_PhysicsSettings = physicsSettings;
            m_Transform       = transform;
            m_Rigidbody       = rigidbody;

            SetRigidBodyParams();

            m_StartPosition = transform.position;
            m_StartRotation = transform.rotation;

            AddDisposable(EventBus.Subscribe(this));
        }
Exemple #2
0
 public SimpleDronePhysics(DronePhysicsSettings physicsSettings, Transform transform, Rigidbody2D rigidbody) : base(physicsSettings, transform, rigidbody)
 {
 }
Exemple #3
0
 public SimpleDronePhysicsWithEngineModifiers(DronePhysicsSettings physicsSettings, Transform transform,
                                              Rigidbody2D rigidbody) :
     base(physicsSettings, transform, rigidbody)
 {
 }