Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 8:20:52 PM (18 years ago)
Author:
bensch
Message:

new rail-proj

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/environments/model_entity.cc

    r7193 r9167  
    3232{
    3333  this->setClassID(CL_MODEL_ENTITY, "ModelEntity");
    34   this->toList(OM_ENVIRON_NOTICK);
     34  this->toList(OM_ENVIRON);
    3535
    3636  this->speed = NULL;
     
    7171void ModelEntity::setMomentum (float angle, float x, float y, float z)
    7272{
     73  Vector v(x,y,z);
     74  v.normalize();
    7375  if (this->momentum == NULL)
    7476    this->momentum = new Quaternion;
    75   *this->momentum = Quaternion(angle, Vector(x, y, z));
     77  *this->momentum = Quaternion(angle, v);
    7678}
    7779
    7880void ModelEntity::tick(float dt)
    7981{
     82  printf("TEST\n");
    8083  if (this->speed != NULL)
    8184    this->shiftCoor(*this->speed * dt);
Note: See TracChangeset for help on using the changeset viewer.