JoltPhysics3D:: Improve characters

This commit is contained in:
SirLynix
2023-03-25 14:27:08 +01:00
committed by Jérôme Leclercq
parent 2b0239b8f0
commit a4ba7d6115
4 changed files with 66 additions and 8 deletions

View File

@@ -41,13 +41,19 @@ namespace Nz
bool IsOnGround() const;
void SetLinearVelocity(const Vector3f& linearVel);
void SetRotation(const Quaternionf& rotation);
void SetUp(const Vector3f& up);
void WakeUp();
JoltCharacter& operator=(const JoltCharacter&) = delete;
JoltCharacter& operator=(JoltCharacter&&) = delete;
private:
void PostSimulate();
protected:
virtual void PreSimulate(float elapsedTime);
virtual void PostSimulate();
private:
std::shared_ptr<JoltCollider3D> m_collider;
std::unique_ptr<JPH::Character> m_character;
JoltPhysWorld3D& m_physicsWorld;