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:10
Definition: Physics.h:31
Definition: PhysicsNode.h:17
void disable()
Definition: PhysicsNode.cpp:78
kmyPhysics::PhysicsNode * obj
Definition: PhysicsNode.h:39
bool isEnabled()
Definition: PhysicsNode.cpp:83
SharpKmyMath::Matrix4 getWorldMatrix()
Definition: PhysicsNode.cpp:36
void setFriction(f32 val)
Definition: PhysicsNode.cpp:11
System::String getName()
Definition: PhysicsNode.cpp:24
void setNotifyTarget(PhysicsNotifyTarget ^tgt)
Definition: PhysicsNode.cpp:42
void setFilterMask(unsigned short m)
Definition: PhysicsNode.h:25
void setFellowId(int id)
Definition: PhysicsNode.cpp:49
void setRestitution(f32 val)
Definition: PhysicsNode.cpp:6
void setWorldMatrix(SharpKmyMath::Matrix4 mtx)
Definition: PhysicsNode.cpp:31
void setIgnoreFromRaycast(bool f)
Definition: PhysicsNode.h:27
PhysicsBase getPhysicsBase()
Definition: PhysicsNode.cpp:68
void setFilterGroup(unsigned short m)
Definition: PhysicsNode.h:26
void enable()
Definition: PhysicsNode.cpp:73
void setName(System::String^ name)
Definition: PhysicsNode.cpp:16
PhysicsNotifyTarget getNotifyTarget()
Definition: PhysicsNode.cpp:56
Definition: NativePhysicsNotifyTarget.h:26
Definition: Billboard.h:6
Definition: PhysicsNode.h:7