- Timestamp:
- Apr 11, 2014, 12:07:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickupsFS14/src/modules/jump/JumpPlatform.cc
r10022 r10032 51 51 model = new Model(getContext()); 52 52 model->setSyncMode(0); 53 model->setMeshSource(" drone.mesh");53 model->setMeshSource("Platform01.mesh"); 54 54 55 movableEntity = new MovableEntity(getContext()); 56 movableEntity->attach(model); 57 58 movableEntity->setScale(100); 59 //movableEntity->setPosition(Vector3(0,0,0)); 60 //movableEntity->setVelocity(Vector3(0,0,1)); 61 55 attach(model); 56 setScale(5); 57 setPosition(Vector3(0,0,0)); 58 setVelocity(Vector3(0,0,0)); 62 59 63 60 } 64 61 62 void JumpPlatform::tick(float dt) 63 { 64 //setAngularVelocity(getAngularVelocity() + Vector3(0.05,0,0)); 65 /*Vector3 movement(0,0,0); 66 Vector3 shipPosition = getPosition();*/ 65 67 66 68 67 69 70 SUPER(JumpPlatform, tick, dt); 71 } 72 73 68 74 }
Note: See TracChangeset
for help on using the changeset viewer.