se_core::Move Class Reference

#include <Move.hpp>

List of all members.

Public Member Functions

 Move ()
void setMove (const Move &original)
coor_t workSpeed () const
bray_t workYaw () const
const Vector3velocity () const
 Get speed in the xz-plane.
void resetSpeed ()
 Set speed to zero.
void changeYaw (bray_t yaw)
void changeSpeed (coor_t speed)
void changeMovement (bray_t yaw, coor_t speed)
 Change movement direction and speed in the xz-plane.
bool isMoving () const
 Is this Pos trying to move this step?
void resetForces ()
 Flick to the next step.
const Vector3resultantForce () const
 Get the sum of the forces that are working on this Pos this step.
void clearForces ()
 Resets the forces that will work on this Pos the next step.
void addForce (const Vector3 &force)
 Adds a force that will work on this Pos the next step.
void addForce (scale_t s, const Vector3 &force)
void subtractForce (const Vector3 &force)
 Subtracs a force that will work on this Pos the next step.

Public Attributes

Vector3 velocity_
Euler3 angularVelocity_
scale_t mass_
Point3 centerOfMass_
Vector3 force_
Euler3 torque_
scale_t linearFriction_
scale_t linearFrictionR_
scale_t angularFriction_
bool didBounce_
scale_t bounceMaintain_
scale_t floorBounce_
int affectCode_
se_core::Move::WorkVars work_


Constructor & Destructor Documentation

se_core::Move::Move  ) 
 

Definition at line 35 of file Move.cpp.

References se_core::SCALE_STEP.


Member Function Documentation

void se_core::Move::addForce scale_t  s,
const Vector3 force
[inline]
 

Definition at line 140 of file Move.hpp.

void se_core::Move::addForce const Vector3 force  )  [inline]
 

Adds a force that will work on this Pos the next step.

Parameters:
force The force to add

Definition at line 136 of file Move.hpp.

References Assert.

void se_core::Move::changeMovement bray_t  yaw,
coor_t  speed
 

Change movement direction and speed in the xz-plane.

Parameters:
direction Direction as braybrookians in xz-plane (a circle is 256 braybrookians).
speed The length of the new speed vector, coor_t units per step.

Definition at line 68 of file Move.cpp.

References se_core::Vector3::setForward().

void se_core::Move::changeSpeed coor_t  speed  ) 
 

Definition at line 54 of file Move.cpp.

References se_core::Vector3::setForward().

void se_core::Move::changeYaw bray_t  yaw  ) 
 

Definition at line 61 of file Move.cpp.

References se_core::Vector3::setForward().

void se_core::Move::clearForces  )  [inline]
 

Resets the forces that will work on this Pos the next step.

Definition at line 129 of file Move.hpp.

bool se_core::Move::isMoving  )  const [inline]
 

Is this Pos trying to move this step?

Returns:
true if is trying to move, false if not.

Definition at line 108 of file Move.hpp.

void se_core::Move::resetForces  ) 
 

Flick to the next step.

Flicks the values that are reserved for use next step, so that they are used now. Performed by the SimEngine just before it precalculates coordinates for the next step.

Definition at line 76 of file Move.cpp.

References se_core::Tuple3::reset().

void se_core::Move::resetSpeed  )  [inline]
 

Set speed to zero.

Definition at line 89 of file Move.hpp.

Referenced by se_basic::EnterTo::perform().

const Vector3& se_core::Move::resultantForce  )  const [inline]
 

Get the sum of the forces that are working on this Pos this step.

Returns:
The sum of the forces presently working on this Pos.

Definition at line 124 of file Move.hpp.

void se_core::Move::setMove const Move original  ) 
 

Definition at line 47 of file Move.cpp.

References force_, and velocity_.

void se_core::Move::subtractForce const Vector3 force  )  [inline]
 

Subtracs a force that will work on this Pos the next step.

Parameters:
force The force to subtract

Definition at line 147 of file Move.hpp.

const Vector3& se_core::Move::velocity  )  const [inline]
 

Get speed in the xz-plane.

Returns:
The length of the speed vector in the xz-plane (coor_t units per step)

Definition at line 84 of file Move.hpp.

Referenced by se_core::PhDefault::applyFriction().

coor_t se_core::Move::workSpeed  )  const [inline]
 

Definition at line 76 of file Move.hpp.

References coor_t.

bray_t se_core::Move::workYaw  )  const [inline]
 

Definition at line 77 of file Move.hpp.

References bray_t.


Member Data Documentation

int se_core::Move::affectCode_
 

Definition at line 64 of file Move.hpp.

scale_t se_core::Move::angularFriction_
 

Definition at line 60 of file Move.hpp.

Referenced by se_core::PhDefault::applyFriction().

Euler3 se_core::Move::angularVelocity_
 

Definition at line 47 of file Move.hpp.

Referenced by se_core::PhDefault::applyForces(), se_core::PhDefault::applyFriction(), and se_core::PhDefault::updateForces().

scale_t se_core::Move::bounceMaintain_
 

Definition at line 62 of file Move.hpp.

Referenced by se_core::PhDefault::applyFriction().

Point3 se_core::Move::centerOfMass_
 

Definition at line 51 of file Move.hpp.

bool se_core::Move::didBounce_
 

Definition at line 61 of file Move.hpp.

Referenced by se_core::PhDefault::applyFriction().

scale_t se_core::Move::floorBounce_
 

Definition at line 63 of file Move.hpp.

Vector3 se_core::Move::force_
 

Definition at line 55 of file Move.hpp.

Referenced by setMove(), and se_core::PhDefault::updateForces().

scale_t se_core::Move::linearFriction_
 

Definition at line 58 of file Move.hpp.

Referenced by se_core::PhDefault::applyFriction().

scale_t se_core::Move::linearFrictionR_
 

Definition at line 59 of file Move.hpp.

scale_t se_core::Move::mass_
 

Definition at line 50 of file Move.hpp.

Euler3 se_core::Move::torque_
 

Definition at line 56 of file Move.hpp.

Referenced by se_core::PhDefault::updateForces().

Vector3 se_core::Move::velocity_
 

Definition at line 46 of file Move.hpp.

Referenced by se_core::PhDefault::applyForces(), se_core::PhDefault::applyFriction(), se_core::PhDefault::clampToGround(), setMove(), and se_core::PhDefault::updateForces().

struct se_core::Move::WorkVars se_core::Move::work_
 


The documentation for this class was generated from the following files:

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:26 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo