19 scene::ISceneManager*
smgr;
54 Cannon(IrrlichtDevice* device, scene::ISceneManager* smgr, video::IVideoDriver* driver, core::vector3df position,
Physics* physics);
59 core::aabbox3df getBoundingBox();
61 scene::IMeshSceneNode* getCannon();
72 core::vector3df getRange();
76 void setRotation(core::vector3df rotation);
83 void shoot(f32 power);
90 void setCamera(core::vector3df offset, core::vector3df rotation, scene::ISceneManager* smgr,scene::ISceneNode* node);
92 void setPosition(core::vector3df position);
105 void initCannon(core::vector3df position, core::vector3df rotation);
core::vector3df initBarrelVector
See ::initialBarrelVector.
Definition: cannon.h:43
ACTION_KEYBOARD
Definition: keyboard.h:10
const f32 CANNON_POWER
Definition: cannon.h:14
Ball represent the projectile of the cannon.
Definition: ball.h:12
const f32 BARREL_RADIUS
Definition: cannon.h:15
Physics * physics
Physics instance
Definition: cannon.h:35
core::vector3df plane
The plane of the cannon.
Definition: cannon.h:45
Cannon handles the cannon object.
Definition: cannon.h:17
const f32 MAX_CANNON_FORCE
Definition: cannon.h:13
Camera * camera
Fixed Camera of the cannon.
Definition: cannon.h:31
scene::IMeshSceneNode * cannon
Cannon scene node.
Definition: cannon.h:23
const f32 MAX_ANGLE_LEFT
Definition: cannon.h:11
f32 angle
Angle of the cannon.
Definition: cannon.h:29
const f32 INCLINATE_FACTOR
Definition: cannon.h:8
core::vector3df initialBarrelVector
Initial vector ray.
Definition: cannon.h:41
Physics class will handle all things related to collisions, creating Bullet physics objects and the p...
Definition: physics.h:12
const f32 MAX_ANGLE_BOTTOM
Definition: cannon.h:9
Keyboard namespace with all things related to Keyboard, Key, and keyboard mapping.
Definition: keyboard.h:8
Ball * btBall
Projectile of the cannon.
Definition: cannon.h:33
scene::IMeshBuffer * wagon
Wagon is the bottom part of the 3d cannon object.
Definition: cannon.h:27
video::IVideoDriver * driver
Definition: cannon.h:21
core::vector3df rotation
Definition: cannon.h:47
IrrlichtDevice * device
Definition: cannon.h:20
scene::ISceneManager * smgr
Definition: cannon.h:19
const f32 MAX_ANGLE_TOP
Definition: cannon.h:10
Camera based on ICameraSceneNode of Irrlicht.
Definition: camera.h:6
scene::IMeshBuffer * barrel
Barrel (cane) of the cannon.
Definition: cannon.h:25
core::vector3df rotationconstraint
Default constructor initialize the angles, setup meshes.
Definition: cannon.h:53
const f32 MAX_ANGLE_RIGHT
Definition: cannon.h:12