mirror of
https://github.com/zeldaret/botw
synced 2026-08-17 13:09:22 -04:00
ksys: Start adding PhysicsConstraints
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#include "KingSystem/Physics/System/physConstraint.h"
|
||||
|
||||
namespace ksys::phys {
|
||||
|
||||
void Constraint::destroy(Constraint* instance) {
|
||||
if (instance)
|
||||
delete instance;
|
||||
}
|
||||
|
||||
} // namespace ksys::phys
|
||||
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <prim/seadRuntimeTypeInfo.h>
|
||||
|
||||
namespace ksys::phys {
|
||||
|
||||
class Constraint {
|
||||
SEAD_RTTI_BASE(Constraint)
|
||||
|
||||
public:
|
||||
// FIXME: types
|
||||
Constraint();
|
||||
virtual ~Constraint();
|
||||
|
||||
/// No-op if instance is null.
|
||||
static void destroy(Constraint* instance);
|
||||
};
|
||||
|
||||
} // namespace ksys::phys
|
||||
Reference in New Issue
Block a user