Jamie Slowgrove - OOT Assignment 1 - A Mission in Afghanistan
 All Classes Namespaces Files Functions Variables Macros
Public Member Functions | Public Attributes | List of all members
GamePhysics::ProjectileObject Struct Reference

#include <GamePhysics.h>

Collaboration diagram for GamePhysics::ProjectileObject:
Collaboration graph

Public Member Functions

 ProjectileObject (Ogre::Vector3 initalVelocity)
 
 ProjectileObject (Ogre::Real initalXVelocity, Ogre::Real initalYVelocity, Ogre::Real initalZVelocity)
 

Public Attributes

Ogre::Vector3 displacement
 
Ogre::Vector3 initalVelocity
 
Ogre::Vector3 velocity
 
Ogre::Real acceleration
 
Ogre::Real time
 

Detailed Description

A structure for game objects that need projectile motion. For use with SUVAT equations.

Constructor & Destructor Documentation

GamePhysics::ProjectileObject::ProjectileObject ( Ogre::Vector3  initalVelocity)
inline

Constructs the ProjectileObject.

Parameters
Ogre::Vector3The inital velocity of the object.
GamePhysics::ProjectileObject::ProjectileObject ( Ogre::Real  initalXVelocity,
Ogre::Real  initalYVelocity,
Ogre::Real  initalZVelocity 
)
inline

Constructs the ProjectileObject.

Parameters
Ogre::RealThe inital x velocity of the object.
Ogre::RealThe inital y velocity of the object.
Ogre::RealThe inital z velocity of the object.

Member Data Documentation

Ogre::Real GamePhysics::ProjectileObject::acceleration

The acceleration of the object

Ogre::Vector3 GamePhysics::ProjectileObject::displacement

The displacement of the object

Ogre::Vector3 GamePhysics::ProjectileObject::initalVelocity

The initial velocities of the object

Ogre::Real GamePhysics::ProjectileObject::time

The time taken by the object

Ogre::Vector3 GamePhysics::ProjectileObject::velocity

The velocities of the object


The documentation for this struct was generated from the following file: