blob: b7df9fb742a6b7f7d17dcdd5a7a528d87f2d87cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "bullet.h"
Bullet::Bullet() {
}
Bullet::Bullet(const Vector3& pos, const Vector3& direction, float radius) {
this->pos = pos;
this->direction = direction;
this->radius = radius;
}
Bullet::Bullet(const Bullet& b) {
pos = b.pos;
direction = b.direction;
radius = b.radius;
}
Bullet& Bullet::operator=(const Bullet& b) {
pos = b.pos;
direction = b.direction;
radius = b.radius;
return *this;
}
Bullet::~Bullet() {
}
|