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
20
23{
24public:
26 virtual ~PhysicsStepListener() = default;
27
34 virtual void OnStep(const PhysicsStepListenerContext &inContext) = 0;
35};
36
#define JPH_EXPORT
Definition Core.h:236
#define JPH_NAMESPACE_END
Definition Core.h:379
#define JPH_NAMESPACE_BEGIN
Definition Core.h:373
Context information for the step listener.
Definition PhysicsStepListener.h:13
float mDeltaTime
Delta time of the current step.
Definition PhysicsStepListener.h:15
bool mIsFirstStep
True if this is the first step.
Definition PhysicsStepListener.h:16
bool mIsLastStep
True if this is the last step.
Definition PhysicsStepListener.h:17
PhysicsSystem * mPhysicsSystem
The physics system that is being stepped.
Definition PhysicsStepListener.h:18
A listener class that receives a callback before every physics simulation step.
Definition PhysicsStepListener.h:23
virtual void OnStep(const PhysicsStepListenerContext &inContext)=0
virtual ~PhysicsStepListener()=default
Ensure virtual destructor.
Definition PhysicsSystem.h:29