You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vphysics_jolt/vphysics_jolt/vjolt_controller_motion.h

34 lines
966 B

#pragma once
#include "vjolt_object.h"
#include "vjolt_environment.h"
class JoltPhysicsMotionController : public IPhysicsMotionController, public IJoltObjectDestroyedListener, public IJoltPhysicsController
{
public:
JoltPhysicsMotionController( IMotionEvent *pHandler );
~JoltPhysicsMotionController() override;
void SetEventHandler( IMotionEvent *handler ) override;
void AttachObject( IPhysicsObject *pObject, bool checkIfAlreadyAttached ) override;
void DetachObject( IPhysicsObject *pObject ) override;
int CountObjects( void ) override;
void GetObjects( IPhysicsObject **pObjectList ) override;
void ClearObjects( void ) override;
void WakeObjects( void ) override;
void SetPriority( priority_t priority ) override;
public:
void OnJoltPhysicsObjectDestroyed( JoltPhysicsObject *pObject ) override;
void OnPreSimulate( float flDeltaTime ) override;
private:
IMotionEvent *m_pMotionEvent;
std::vector< JoltPhysicsObject * > m_pObjects;
};