Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Ball Class Reference

ball on the soccer field ;) More...

#include <ball.h>

Inheritance diagram for Ball:

Inheritance graph
[legend]
Collaboration diagram for Ball:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Ball ()
virtual ~Ball ()
void SetAcceleration (int steps, const salt::Vector3f &force, const salt::Vector3f &torque, boost::shared_ptr< oxygen::AgentAspect > agent)
 Set the acceleration of the ball.
virtual void PrePhysicsUpdateInternal (float deltaTime)
 This method is used to add forces and torques to the ball before each simulation step, if necessary.

Private Attributes

int mForceTTL
salt::Vector3f mForce
salt::Vector3f mTorque
boost::shared_ptr< oxygen::BodymBody
boost::shared_ptr< oxygen::AgentAspectmKickedLast
boost::shared_ptr< BallStateAspectmBallStateAspect

Detailed Description

ball on the soccer field ;)

Definition at line 37 of file ball.h.


Constructor & Destructor Documentation

Ball::Ball  ) 
 

Definition at line 30 of file ball.cpp.

virtual Ball::~Ball  )  [inline, virtual]
 

Definition at line 41 of file ball.h.


Member Function Documentation

void Ball::PrePhysicsUpdateInternal float  deltaTime  )  [virtual]
 

This method is used to add forces and torques to the ball before each simulation step, if necessary.

Reimplemented from oxygen::BaseNode.

Definition at line 54 of file ball.cpp.

References zeitgeist::Object::GetCore(), mBallStateAspect, mBody, mForce, mForceTTL, mKickedLast, mTorque, and oxygen::BaseNode::PrePhysicsUpdateInternal().

Here is the call graph for this function:

void Ball::SetAcceleration int  steps,
const salt::Vector3f force,
const salt::Vector3f torque,
boost::shared_ptr< oxygen::AgentAspect agent
 

Set the acceleration of the ball.

This method can be used to accelerate the ball over a number of simulation steps. The ball acceleration will be applied over the number of steps using a constant force and torque.

Parameters:
steps number of steps the acceleration should be applied.
force the maximum force to add to the ball
torque the maximum torque to add to the ball
agent the agent kicking the ball


Member Data Documentation

boost::shared_ptr<BallStateAspect> Ball::mBallStateAspect [private]
 

Definition at line 70 of file ball.h.

Referenced by PrePhysicsUpdateInternal().

boost::shared_ptr<oxygen::Body> Ball::mBody [private]
 

Definition at line 68 of file ball.h.

Referenced by PrePhysicsUpdateInternal().

salt::Vector3f Ball::mForce [private]
 

Definition at line 66 of file ball.h.

Referenced by PrePhysicsUpdateInternal().

int Ball::mForceTTL [private]
 

Definition at line 64 of file ball.h.

Referenced by PrePhysicsUpdateInternal().

boost::shared_ptr<oxygen::AgentAspect> Ball::mKickedLast [private]
 

Definition at line 69 of file ball.h.

Referenced by PrePhysicsUpdateInternal().

salt::Vector3f Ball::mTorque [private]
 

Definition at line 67 of file ball.h.

Referenced by PrePhysicsUpdateInternal().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:37:37 2006 for rcssserver3d by  doxygen 1.4.4