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_internal_listeners.h

25 lines
548 B

#pragma once
class JoltPhysicsObject;
abstract_class IJoltPhysicsController
{
public:
virtual ~IJoltPhysicsController() {}
// Called before the simulation is run
virtual void OnPreSimulate( float flDeltaTime ) {};
// Called after the simulation is run
virtual void OnPostSimulate( float flDeltaTime ) {};
};
abstract_class IJoltObjectDestroyedListener
{
public:
virtual ~IJoltObjectDestroyedListener() {}
// Called whenever a physics object is destroyed
virtual void OnJoltPhysicsObjectDestroyed( JoltPhysicsObject *pObject ) = 0;
};