Add improvements for joints editing with debug shapes

This commit is contained in:
Wojtek Figat
2021-09-29 10:02:38 +02:00
parent 5c60281814
commit 3d1213d669
14 changed files with 252 additions and 13 deletions

View File

@@ -137,8 +137,6 @@ public:
/// <param name="angular">The result angular force.</param>
API_FUNCTION() void GetCurrentForce(API_PARAM(Out) Vector3& linear, API_PARAM(Out) Vector3& angular) const;
public:
/// <summary>
/// Creates native join object.
/// </summary>
@@ -169,16 +167,18 @@ protected:
Vector3 Pos1;
};
Vector3 GetTargetPosition() const;
Quaternion GetTargetOrientation() const;
virtual PxJoint* CreateJoint(JointData& data) = 0;
#if USE_EDITOR
virtual void DrawPhysicsDebug(RenderView& view);
#endif
private:
void Delete();
void SetActors();
void OnTargetChanged();
#if USE_EDITOR
void DrawPhysicsDebug(RenderView& view);
#endif
public: