raSystem
1.0 bata
raPhysik.h
Go to the documentation of this file.
1
#pragma once
2
3
class
RAPI
raPhysik
4
{
5
public
:
6
raPhysik
(
raRender
*rand);
7
raPhysik
(
raRender
* rend,
8
const
raVector3
& Position,
9
const
raVector3
& Velocity,
10
const
raVector3
& Accelerator,
11
float
mass = 1.0f);
12
13
virtual
~
raPhysik
(
void
);
14
15
virtual
void
Update(
float
fTime,
float
fRunTime);
16
17
void
Accelerate(
float
x,
float
y,
float
z);
18
void
AngAccel(
float
x,
float
y,
float
z);
19
20
void
SetAccelerate(
float
x,
float
y,
float
z);
21
void
SetAccelerate(
raVector3
Acc);
22
23
void
SetAngAccel(
float
x,
float
y,
float
z);
24
void
SetAngAccel(
raVector3
Ang);
25
26
void
StopMotion();
27
28
raVector3
GetPosition();
29
raVector3
GetVelocity();
30
float
GetMass();
31
float
GetBoundingSphereRadius();
32
33
void
SetVelocity(
float
x,
float
y,
float
z);
34
private
:
35
raMatrix
m_Translation;
36
raVector3
m_Velocity;
37
raVector3
m_Accelerate;
38
39
raMatrix
m_Rotation;
40
raVector3
m_AngularVelocity;
41
raVector3
m_AngularAccelerate;
42
43
raMatrix
m_Scaling;
44
float
m_Mass;
45
46
raRender
*m_pRender;
47
};
raMatrix
Definition:
raMatrix.h:5
RAPI
#define RAPI
Definition:
raMain.h:11
raPhysik
Definition:
raPhysik.h:3
raVector3
Definition:
raVector3.h:5
raRender
Definition:
raRender.h:3
include
raPhysik.h
Generated by
1.8.13