PhysicsStep Class Reference

#include <PhysicsStep.h>

Inherits Animator.

Inheritance diagram for PhysicsStep:

Inheritance graph
[legend]
Collaboration diagram for PhysicsStep:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PhysicsStep (Object *obj, unsigned int frame, const Vec3f &v, const Vec3f &w)
virtual bool animate (unsigned int frame)

Protected Attributes

Vec3f mV
 Linear velocity.
Vec3f mW
 Angular velocity.

Detailed Description

Animator to shot billiard balls

Author:
Alex Busenius

Definition at line 14 of file PhysicsStep.h.


Constructor & Destructor Documentation

PhysicsStep::PhysicsStep ( Object obj,
unsigned int  frame,
const Vec3f v,
const Vec3f w 
) [inline]

Constructor

Parameters:
obj Object to animate
frame Frame number when animation should start
v Initial linear velocity
w Initial angular velocity

Definition at line 24 of file PhysicsStep.h.


Member Function Documentation

virtual bool PhysicsStep::animate ( unsigned int  frame  )  [inline, virtual]

Shot the ball or do nothing if given frame != mFrame

Parameters:
frame Current frame
Returns:
true if animation was applied

Implements Animator.

Definition at line 39 of file PhysicsStep.h.

References LOG, Animator::mFrame, Animator::mObject, mV, mW, Object::name(), PhysicalObject::setAngularVelocity(), and PhysicalObject::setVelocity().


Member Data Documentation

Vec3f PhysicsStep::mV [protected]

Linear velocity.

Definition at line 51 of file PhysicsStep.h.

Referenced by animate().

Vec3f PhysicsStep::mW [protected]

Angular velocity.

Definition at line 54 of file PhysicsStep.h.

Referenced by animate().


The documentation for this class was generated from the following file:
Generated on Fri Feb 1 00:02:22 2008 for Grayfall by  doxygen 1.5.1