Logo
PhysicsNode.h
1#pragma once
2
3#include "Types.h"
4#include "Math/Matrix4.h"
5
6namespace kmyPhysics
7{
8 class PhysicsNode;
9}
10
11namespace XXSharpKmyPhysics
12{
13 ref class PhysicsBase;
14 ref class PhysicsNotifyTarget;
15
16 private ref class PhysicsNode
17 {
18 public:
19 void setRestitution(f32 val);
20 void setFriction(f32 val);
21 void setName(System::String^ name);
22 void setWorldMatrix(XXSharpKmyMath::Matrix4 mtx);
23 void setNotifyTarget(PhysicsNotifyTarget ^tgt);
24 void setFellowId(int id);
25 void setFilterMask(unsigned short m) { if (obj)obj->setFilterMask(m); }
26 void setFilterGroup(unsigned short m) { if (obj)obj->setFilterGroup(m); }
27 void setIgnoreFromRaycast(bool f) { if (obj)obj->setIgnoreFromRaycast(f); }
28 void setCustomDebugColor(float r, float g, float b) { if (obj)obj->setCustomDebugColor(r, g, b); }
29 void setDebugVisibilityMask(u32 mask) { if (obj)obj->setDebugVisibilityMask(mask); }
30
31 void enable();
32 void disable();
33 bool isEnabled();
34
35 PhysicsNotifyTarget^ getNotifyTarget();
36
37 System::String^ getName();
38 XXSharpKmyMath::Matrix4 getWorldMatrix();
39 PhysicsBase^ getPhysicsBase();
40
41 kmyPhysics::PhysicsNode *obj = nullptr;
42 };
43}
Definition: PhysicsNode.h:7