Logo
RigidBody.h
1#pragma once
2
3#include "PhysicsNode.h"
4#include "Math/Vector3.h"
5
6namespace XXSharpKmyPhysics
7{
8 private ref class RigidBody : public PhysicsNode
9 {
10 public:
11 RigidBody(kmyPhysics::RigidBody* p);
12
13 void activate(bool flg);
14
15 XXSharpKmyMath::Vector3 getLinearVelocity();
16 void setLinearVelocity(XXSharpKmyMath::Vector3 v);
17 void setLinearVelocity(XXSharpKmyMath::Vector3 v, XXSharpKmyMath::Vector3 mask);
18 void setLinearFactor(XXSharpKmyMath::Vector3 v);
19 void setToUseCcd(float radius);
20 void setPositionDamping(float d);
21 void setAngularVelocity(XXSharpKmyMath::Vector3 v);
22 void setAngularFactor(XXSharpKmyMath::Vector3 v);
23 void setAngularDamping(float d);
24 void applyForce(XXSharpKmyMath::Vector3 v, XXSharpKmyMath::Vector3 pos);
25 void applyTorque(XXSharpKmyMath::Vector3 v);
26 void applyImpulse(XXSharpKmyMath::Vector3 v, XXSharpKmyMath::Vector3 pos);
27 void applyCentralForce(XXSharpKmyMath::Vector3 v);
28 void applyCentralImpulse(XXSharpKmyMath::Vector3 v);
29 float getGravity();
30 void setGravity(XXSharpKmyMath::Vector3 g);
31 void setMass(f32 mass, XXSharpKmyMath::Vector3 inertia);
32 void clearForces();
33 void disableDeactivate();
34 };
35
36
37}