JoltPhysics3D:: Improve characters
This commit is contained in:
committed by
Jérôme Leclercq
parent
2b0239b8f0
commit
a4ba7d6115
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user