OldBlueWater/BlueWater/Assets/NWH/Common/Scripts/CoM/IMassAffector.cs

26 lines
685 B
C#
Raw Normal View History

2023-12-19 02:31:29 +00:00
using UnityEngine;
namespace NWH.Common.CoM
{
/// <summary>
/// Represents object that has mass and is a child of VariableCoM.
/// Affects rigidbody center of mass and inertia.
/// </summary>
public interface IMassAffector
{
/// <summary>
/// Returns mass of the mass affector in kilograms.
/// </summary>
float GetMass();
/// <summary>
/// Returns the center of mass of the affector in world coordinates.
/// </summary>
Vector3 GetWorldCenterOfMass();
/// <summary>
/// Returns transform of the mass affector.
/// </summary>
Transform GetTransform();
}
}