#include <PhysicsStep.h>
Inherits Animator.
Inheritance diagram for PhysicsStep:


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. | |
Definition at line 14 of file PhysicsStep.h.
| PhysicsStep::PhysicsStep | ( | Object * | obj, | |
| unsigned int | frame, | |||
| const Vec3f & | v, | |||
| const Vec3f & | w | |||
| ) | [inline] |
Constructor
| 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.
| virtual bool PhysicsStep::animate | ( | unsigned int | frame | ) | [inline, virtual] |
Shot the ball or do nothing if given frame != mFrame
| frame | Current frame |
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().
Vec3f PhysicsStep::mV [protected] |
Vec3f PhysicsStep::mW [protected] |
1.5.1