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 SharpKmyPhysics
12{
13 ref class PhysicsBase;
14 ref class PhysicsNotifyTarget;
15
16 public ref class PhysicsNode
17 {
18 public:
19 void setRestitution(f32 val);
20 void setFriction(f32 val);
21 void setName(System::String^ name);
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
29 void enable();
30 void disable();
31 bool isEnabled();
32
34
35 System::String^ getName();
38
39 kmyPhysics::PhysicsNode *obj = nullptr;
40 };
41}
Definition: Matrix4.h:12
Definition: Physics.h:31
Definition: PhysicsNode.h:17
void disable()
Definition: PhysicsNode.cpp:100
kmyPhysics::PhysicsNode * obj
Definition: PhysicsNode.h:39
bool isEnabled()
Definition: PhysicsNode.cpp:107
SharpKmyMath::Matrix4 getWorldMatrix()
Definition: PhysicsNode.cpp:46
void setFriction(f32 val)
Definition: PhysicsNode.cpp:13
System::String getName()
Definition: PhysicsNode.cpp:30
void setNotifyTarget(PhysicsNotifyTarget ^tgt)
Definition: PhysicsNode.cpp:54
void setFilterMask(unsigned short m)
Definition: PhysicsNode.h:25
void setFellowId(int id)
Definition: PhysicsNode.cpp:63
void setRestitution(f32 val)
Definition: PhysicsNode.cpp:6
void setWorldMatrix(SharpKmyMath::Matrix4 mtx)
Definition: PhysicsNode.cpp:39
void setIgnoreFromRaycast(bool f)
Definition: PhysicsNode.h:27
PhysicsBase getPhysicsBase()
Definition: PhysicsNode.cpp:86
void setFilterGroup(unsigned short m)
Definition: PhysicsNode.h:26
void enable()
Definition: PhysicsNode.cpp:93
void setName(System::String^ name)
Definition: PhysicsNode.cpp:20
PhysicsNotifyTarget getNotifyTarget()
Definition: PhysicsNode.cpp:72
Definition: NativePhysicsNotifyTarget.h:26
Definition: Billboard.h:6
Definition: PhysicsNode.h:7