Check if weapon collision point is inside enemy and do weapon damage

This commit is contained in:
jancoow
2016-06-21 17:00:36 +02:00
parent 0a0fdfc8b1
commit 4249e35653
7 changed files with 33 additions and 7 deletions
+2 -2
View File
@@ -12,7 +12,7 @@
class Weapon {
public:
Weapon(std::string modelFilename, float scale, Vec3f location, Vec2f rotation,
Vec3f offsetPlayer, Vec3f ankerPoint,
Vec3f offsetPlayer, Vec3f ankerPoint, Vec3f collisionPoint,
Vec2f maxRotation, Vec2f minXRotation);
~Weapon();
@@ -26,7 +26,7 @@ public:
float scale;
Vec3f position, rotation, rotationWeapon;
Vec3f offsetPlayer, ankerPoint;
Vec3f offsetPlayer, ankerPoint, collisionPoint;
Vec2f maxRotation, minRotation;
};