mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
31 lines
806 B
C#
31 lines
806 B
C#
using AssetRipper.SourceGenerated.Classes.ClassID_54;
|
|
using AssetRipper.SourceGenerated.Enums;
|
|
|
|
namespace AssetRipper.SourceGenerated.Extensions
|
|
{
|
|
public static class RigidbodyExtensions
|
|
{
|
|
public static RigidbodyInterpolation GetInterpolate(this IRigidbody body)
|
|
{
|
|
return (RigidbodyInterpolation)body.Interpolate_C54;
|
|
}
|
|
|
|
public static RigidbodyConstraints GetConstraints(this IRigidbody body)
|
|
{
|
|
//if (body.Has_FreezeRotation_C54())
|
|
{
|
|
//return body.FreezeRotation_C54 ? RigidbodyConstraints.FreezeRotation : RigidbodyConstraints.None;
|
|
}
|
|
//else
|
|
{
|
|
return (RigidbodyConstraints)body.Constraints_C54;
|
|
}
|
|
}
|
|
|
|
public static CollisionDetectionMode GetCollisionDetection(this IRigidbody body)
|
|
{
|
|
return (CollisionDetectionMode)body.CollisionDetection_C54;
|
|
}
|
|
}
|
|
}
|