#include <ball.h>
Inheritance diagram for Ball:


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::Body > | mBody |
| boost::shared_ptr< oxygen::AgentAspect > | mKickedLast |
| boost::shared_ptr< BallStateAspect > | mBallStateAspect |
Definition at line 37 of file ball.h.
|
|
|
|
|
|
|
|
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: ![]() |
|
||||||||||||||||||||
|
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.
|
|
|
Definition at line 70 of file ball.h. Referenced by PrePhysicsUpdateInternal(). |
|
|
Definition at line 68 of file ball.h. Referenced by PrePhysicsUpdateInternal(). |
|
|
Definition at line 66 of file ball.h. Referenced by PrePhysicsUpdateInternal(). |
|
|
Definition at line 64 of file ball.h. Referenced by PrePhysicsUpdateInternal(). |
|
|
Definition at line 69 of file ball.h. Referenced by PrePhysicsUpdateInternal(). |
|
|
Definition at line 67 of file ball.h. Referenced by PrePhysicsUpdateInternal(). |
1.4.4