Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
PhysicsStepListener.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
8
9class PhysicsSystem;
10
13{
14public:
16 virtual ~PhysicsStepListener() = default;
17
24 virtual void OnStep(float inDeltaTime, PhysicsSystem &inPhysicsSystem) = 0;
25};
26
#define JPH_EXPORT
Definition: Core.h:227
#define JPH_NAMESPACE_END
Definition: Core.h:367
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:361
A listener class that receives a callback before every physics simulation step.
Definition: PhysicsStepListener.h:13
virtual ~PhysicsStepListener()=default
Ensure virtual destructor.
virtual void OnStep(float inDeltaTime, PhysicsSystem &inPhysicsSystem)=0
Definition: PhysicsSystem.h:29