Logo
RigidBody.h
1#pragma once
2
3#include "PhysicsNode.h"
4#include "Math/Vector3.h"
5
6namespace SharpKmyPhysics
7{
8 public ref class RigidBody : public PhysicsNode
9 {
10 public:
11 RigidBody(kmyPhysics::RigidBody* p);
12
13 void activate(bool flg);
14
19 void setPositionDamping(float d);
22 void setAngularDamping(float d);
28 float getGravity();
30 void setMass(f32 mass, SharpKmyMath::Vector3 inertia);
31 void clearForces();
32 void disableDeactivate();
33 void setCustomDebugColor(float r, float g, float b);
34 void setDebugVisibilityMask(u32 mask);
35 };
36
37
38}
Definition: PhysicsNode.h:17
Definition: RigidBody.h:9
RigidBody(kmyPhysics::RigidBody *p)
Definition: RigidBody.cpp:6
void setAngularFactor(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:76
void setLinearVelocity(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:33
void applyCentralForce(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:127
void applyTorque(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:97
void setMass(f32 mass, SharpKmyMath::Vector3 inertia)
Definition: RigidBody.cpp:148
void applyCentralImpulse(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:134
void disableDeactivate()
Definition: RigidBody.cpp:155
void clearForces()
Definition: RigidBody.cpp:141
void applyForce(SharpKmyMath::Vector3 v, SharpKmyMath::Vector3 pos)
Definition: RigidBody.cpp:90
void setAngularDamping(float d)
Definition: RigidBody.cpp:83
SharpKmyMath::Vector3 getLinearVelocity()
Definition: RigidBody.cpp:20
void setLinearFactor(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:55
void setAngularVelocity(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:69
void applyImpulse(SharpKmyMath::Vector3 v, SharpKmyMath::Vector3 pos)
Definition: RigidBody.cpp:104
void activate(bool flg)
Definition: RigidBody.cpp:13
void setGravity(SharpKmyMath::Vector3 g)
Definition: RigidBody.cpp:120
void setDebugVisibilityMask(u32 mask)
Definition: RigidBody.cpp:169
float getGravity()
Definition: RigidBody.cpp:111
void setCustomDebugColor(float r, float g, float b)
Definition: RigidBody.cpp:162
void setPositionDamping(float d)
Definition: RigidBody.cpp:62
Definition: Billboard.h:6
Definition: Vector3.h:7