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:60
void setLinearVelocity(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:27
void applyCentralForce(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:97
void applyTorque(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:75
void setMass(f32 mass, SharpKmyMath::Vector3 inertia)
Definition: RigidBody.cpp:112
void applyCentralImpulse(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:102
void disableDeactivate()
Definition: RigidBody.cpp:117
void clearForces()
Definition: RigidBody.cpp:107
void applyForce(SharpKmyMath::Vector3 v, SharpKmyMath::Vector3 pos)
Definition: RigidBody.cpp:70
void setAngularDamping(float d)
Definition: RigidBody.cpp:65
SharpKmyMath::Vector3 getLinearVelocity()
Definition: RigidBody.cpp:16
void setLinearFactor(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:45
void setAngularVelocity(SharpKmyMath::Vector3 v)
Definition: RigidBody.cpp:55
void applyImpulse(SharpKmyMath::Vector3 v, SharpKmyMath::Vector3 pos)
Definition: RigidBody.cpp:80
void activate(bool flg)
Definition: RigidBody.cpp:11
void setGravity(SharpKmyMath::Vector3 g)
Definition: RigidBody.cpp:92
void setDebugVisibilityMask(u32 mask)
Definition: RigidBody.cpp:127
float getGravity()
Definition: RigidBody.cpp:85
void setCustomDebugColor(float r, float g, float b)
Definition: RigidBody.cpp:122
void setPositionDamping(float d)
Definition: RigidBody.cpp:50
Definition: Billboard.h:6
Definition: Vector3.h:8