Changeset 62
- Timestamp:
- 05/13/08 21:22:22 (7 months ago)
- Files:
-
- trunk/bin/yage3d.exe (modified) (previous)
- trunk/proj/buildme.d (modified) (1 diff)
- trunk/src/demo1/main.d (modified) (1 diff)
- trunk/src/demo1/ship.d (modified) (1 diff)
- trunk/src/yage/util/spring.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/proj/buildme.d
r61 r62 36 36 // Paths are relative to the build script. 37 37 char[] mod_path = "../src"; // The root folder of all modules 38 char[][] src_path = ["../src/yage", "../src/demo 1"];// Array of folders to look for source files38 char[][] src_path = ["../src/yage", "../src/demo2"];// Array of folders to look for source files 39 39 char[][] imp_path = ["../src/derelict"]; // Array of folders to look for imports 40 40 char[][] lib_path = ["../lib"]; // Array of folders to scan for libraries trunk/src/demo1/main.d
r56 r62 70 70 ship.input = !ship.input; 71 71 } 72 72 73 73 void onMousemove(Surface self, byte buttons, Vec2i rel){ 74 74 if(ship.input){ trunk/src/demo1/ship.d
r56 r62 104 104 mouseDelta.x = mouseDelta.y = 0; 105 105 } 106 106 107 writefln(getRotation()); 107 108 108 109 // Bank on turn trunk/src/yage/util/spring.d
r57 r62 55 55 /// Update the position of the floater relative to what it's attached to. 56 56 void update(float delta){ 57 Vec3f h = head.getAbsoluteRotation(); 58 Vec3f t = tail.getAbsoluteRotation(); 59 tail.setRotation(Vec3f((t.x+h.x)/2, (t.y+h.y)/2, (t.z+h.z)/2)); 57 tail.setRotation(head.getAbsoluteRotation()); 60 58 61 59 Vec3f dist = head.getAbsolutePosition() - tail.getAbsolutePosition() + distance.rotate(head.getAbsoluteTransform());
