Mf::Scalar mass;
Mf::Scalar inverseMass;
+ void recalculate()
+ {
+ velocity = momentum * inverseMass;
+ }
+
void getDerivative(Derivative& derivative, Mf::Scalar t) const
{
derivative.force = force;
}
- void recalculate()
- {
- velocity = momentum * inverseMass;
- }
-
void applyDerivative(const Derivative& derivative, Mf::Scalar dt)
{
position += dt * derivative.velocity;
State previous;
State current;
- stlplus::ntree<Mf::OctreeNode>::iterator treeNode;
+ Mf::OctreeNodeP treeNode;
private:
};
-inline Character::State operator*(Mf::Scalar scalar, const Character::State& state)
+inline Character::State operator*(Mf::Scalar scalar,
+ const Character::State& state)
{
Character::State newState = state;
newState.position *= scalar;