Add D6 Joint motions editing in Editor properties panel

This commit is contained in:
Wojtek Figat
2021-09-29 10:05:43 +02:00
parent 3d1213d669
commit 6ee5f5cc70
3 changed files with 62 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ API_ENUM() enum class D6JointAxis
/// </summary>
SwingZ = 5,
API_ENUM(Attributes="HideInEditor")
MAX
};
@@ -63,6 +64,7 @@ API_ENUM() enum class D6JointMotion
/// </summary>
Free,
API_ENUM(Attributes="HideInEditor")
MAX
};
@@ -113,6 +115,7 @@ API_ENUM() enum class D6JointDriveType
/// </summary>
Slerp = 5,
API_ENUM(Attributes="HideInEditor")
MAX
};

View File

@@ -330,12 +330,12 @@ DECLARE_SCRIPTING_TYPE_MINIMAL(LimitConeRange);
/// <summary>
/// The Y angle of the cone (in degrees). Movement is constrained between 0 and this angle on the Y axis.
/// </summary>
API_FIELD() float YLimitAngle = 90.0f;
API_FIELD(Attributes="Limit(0.0f, 180.0f)") float YLimitAngle = 90.0f;
/// <summary>
/// The Z angle of the cone (in degrees). Movement is constrained between 0 and this angle on the Z axis.
/// </summary>
API_FIELD() float ZLimitAngle = 90.0f;
API_FIELD(Attributes="Limit(0.0f, 180.0f)") float ZLimitAngle = 90.0f;
public: