Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
BodyActivationListener.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 BodyID;
10
14{
15public:
17 virtual ~BodyActivationListener() = default;
18
21 virtual void OnBodyActivated(const BodyID &inBodyID, uint64 inBodyUserData) = 0;
22
25 virtual void OnBodyDeactivated(const BodyID &inBodyID, uint64 inBodyUserData) = 0;
26};
27
std::uint64_t uint64
Definition Core.h:450
#define JPH_NAMESPACE_END
Definition Core.h:379
#define JPH_NAMESPACE_BEGIN
Definition Core.h:373
Definition BodyActivationListener.h:14
virtual ~BodyActivationListener()=default
Ensure virtual destructor.
virtual void OnBodyActivated(const BodyID &inBodyID, uint64 inBodyUserData)=0
virtual void OnBodyDeactivated(const BodyID &inBodyID, uint64 inBodyUserData)=0
ID of a body. This is a way of reasoning about bodies in a multithreaded simulation while avoiding ra...
Definition BodyID.h:13