OldBlueWater/BlueWater/Assets/NWH/Common/Scripts/CoM/IMassAffector.cs
2023-12-19 11:31:29 +09:00

26 lines
685 B
C#

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();
}
}