ksys/phys: Rename RigidBody/UserTag broadphase border callbacks

This commit is contained in:
Léo Lam
2022-01-29 12:36:59 +01:00
parent 10d3f129b0
commit 61201ca54b
6 changed files with 21 additions and 10 deletions
@@ -1,9 +1,10 @@
#include "KingSystem/Physics/System/physUserTag.h"
#include "KingSystem/Physics/RigidBody/physRigidBody.h"
namespace ksys::phys {
void UserTag::m2(void* a) {
// FIXME
void UserTag::onMaxPositionExceeded(RigidBody* body) {
body->onMaxPositionExceeded();
}
void UserTag::m3(void* a, void* b, float c) {
+3 -2
View File
@@ -13,8 +13,9 @@ class UserTag {
public:
UserTag() = default;
// FIXME: names and types
virtual void m2(void* a);
/// Called when a rigid body goes beyond the broadphase border.
/// The default implementation just notifies the rigid body of this callback.
virtual void onMaxPositionExceeded(RigidBody* body);
// a and b are probably physics bodies?
virtual void m3(void* a, void* b, float c);
virtual void onBodyShapeChanged(RigidBody* body);