Commit Graph

50 Commits

Author SHA1 Message Date
Rtch90
762d7fcd3e [Add] More basic AI functions.
[Change] Split AI into it's own unit.
[Note] Space battles are fun!
2018-04-14 21:47:30 +01:00
Rtch90
b32409dfb1 [Move] AI stuff could be useful for autopilot, so moved to Ship. 2018-04-14 17:13:45 +01:00
Rtch90
115c33526d [Add] Start of ship ai. 2018-04-14 16:51:33 +01:00
Rtch90
fdbdac3486 [Add] Explosions when ships die anyone? 2018-04-14 04:01:35 +01:00
Rtch90
d455debea6 [Add] Mkay, ships can take damage and die now. 2018-04-13 23:30:34 +01:00
Rtch90
abfd826e73 [Change] Laser hit uses new collision detection. 2018-04-13 22:24:56 +01:00
Rtch90
88f4b7e6a7 [Change] Initial ode-less dynamic body work.
[Remove] Removed ODE dep.
[Missing] No collisions yet.
2018-04-08 17:01:03 +01:00
Rtch90
42a3a9b3d0 [Change] Abstract dynamic body stuff ready for ODE removal. 2018-04-06 23:23:57 +01:00
Rtch90
3aa74ee0b0 [Add] Some elastic collision crap. 2018-04-06 22:54:29 +01:00
Rtch90
6b4b76f3b2 [Remove] Some bits of ODE collision detection from ModelBody.
[Add] Some Accessor/Mutator's for rotations/position in geoms and
Dynamic bodies.
2018-04-06 22:38:48 +01:00
Rtch90
2a8df8b3bf [Add] Always collide with sphere when trimesh inside.
[Fix] Fixed silly landing bug.
2018-04-06 22:21:53 +01:00
Allanis
6f17d5788b [Add] More save/load game work. Incomplete, needs ship equipment etc.. 2018-02-03 17:09:20 +00:00
Allanis
6eaf5524a9 [Add] A lot of preliminary work on game saves. 2018-01-30 20:12:30 +00:00
Allanis
2243d82e64 [Change] Allow ship rotation controls at high time accel.
[Change] Force gears down on docking.
2018-01-21 15:58:17 +00:00
Allanis
5afece9c00 [Fix] Position ships correctly when sat on ground so they don't sink in. 2018-01-21 14:00:00 +00:00
Allanis
bed1c183c7 [Add] Landing on ground based stations. Uses the same geom flag 1 thing
to indicate docking surface, but they are visible surfaces in this case.
2018-01-21 00:12:28 +00:00
Allanis
747aaf1981 [Add] Zero velocity and forces on landing. 2018-01-20 18:14:59 +00:00
Allanis
d89e39e1c0 [Add] More landing constraints.
[Fix?] Correct wheel behaviour when landed.
2018-01-20 17:23:06 +00:00
Allanis
ff11777564 [Change] Some shortcut key changes.
[Add] Launching after landing.
2018-01-20 17:06:09 +00:00
Allanis
92bac965d1 [Add] Planet landing. 2018-01-18 20:30:41 +00:00
Allanis
887f330a36 [Change] Renaming a few stuff to comply with convention. 2018-01-14 14:11:21 +00:00
Allanis
c578942682 [Fix] Revert the silly hack and change dynamic bodies to have spherical
mass distribution to prevent horrible exploding errors in angular
velocity.
2018-01-13 16:30:15 +00:00
Allanis
c8a7e1ac94 [Change] Hack to deal with high ang velocity and long ode timesteps. 2018-01-13 16:02:59 +00:00
Allanis
a66869c16f [Change] More rotating frame work. Looks pretty nice now.. 2018-01-07 14:59:56 +00:00
Allanis
5c87fa475d [Fix] Targetting bug when labels enabled.
[Fix] Bug also in docking..
2017-12-24 18:49:26 +00:00
Allanis
b5ced55926 [Remove] Removed objimport* 2017-12-24 17:18:26 +00:00
Allanis
c09f8fbc8e [Fix] Stop player controls from going crazy when switched from world
view.
2017-12-24 13:02:44 +00:00
Allanis
52819f2878 [Add] Preliminary communications to space stations and ships. 2017-12-24 00:06:09 +00:00
Allanis
8e5a9fd008 [Change] Position player in docking bay on undocking. Need to do request
docking clearance, because at the minute repeat docking is not possible.
D:
2017-11-20 22:15:23 +00:00
Allanis
df060177d9 [Add] ModelBody::SetRotation(). 2017-11-19 22:45:44 +00:00
Allanis
14ee542723 [Fix] Somewhere amongs the changes docking got borked. 2017-11-19 22:19:16 +00:00
Allanis
8ff436c193 [Change] Renamed rigid body stuff. 2017-11-19 22:01:50 +00:00
Allanis
40f38a0f58 [Change] Get the collision geom flags through to the collision
detection..
2017-11-19 19:50:06 +00:00
Allanis
84530e9771 [Add] Body death and associated cleanup. Space::KillBody() to kill a
body.
2017-11-19 14:42:30 +00:00
Allanis
4595e1f643 [Change] Just messing with a few values. Put some space between the other actors. 2017-11-19 12:37:19 +00:00
Allanis
9004c7b731 [Add] Working on collision. Doesn't work, see how changing model scale screws collisions. If I set the model 62 scale to 2.0 then hitting it gives screwed up collisions. On scale 1.0 it works fine though. 2017-11-19 11:41:35 +00:00
Allanis
411e82b6ef [Fix] Should probably clear those thrusters upon initilization. :D 2017-11-19 00:13:28 +00:00
Allanis
f043889fe9 [Fix] This took wayy too long to debug.. if(n < 100); n = 100; !?!?!?!? 2017-11-18 23:59:59 +00:00
Allanis
aa28ff95b3 [Add] Collisions using collision meshes. 2017-11-18 18:18:31 +00:00
Allanis
1f9df7f9b6 [Add] Added targets to ships. 2017-11-17 20:51:44 +00:00
Allanis
17e83387f1 [Fix] Set ship gear flag properly so we don't see the wheels now when the gears are up and flaps closed. 2017-11-14 20:27:40 +00:00
Allanis
74e68eb265 [Add] Wheels up/down transition. 2017-11-14 20:21:06 +00:00
Allanis
ffe1f35386 [Add] Set some anim params so engine pulse works. Looks pretty nice.
[Fix] Fixed ambiguois calls to pow().
2017-11-14 20:04:36 +00:00
Allanis
5bd34e49c4 [Fix] Fixed external view, forgot to add players external veiw translation to camera frame's position.
[Fix] Correctly apply ship masses.
[Add] A nice rotating ship in the infoview pane.
2017-11-13 22:12:02 +00:00
Allanis
56f5411516 [Add] Some Hyperspace range stuff.
[Add] SectorMap indicates current ship location.
2017-11-13 20:59:38 +00:00
Allanis
ec2479eb80 [Add] Ship info screen with more ship stats.
[Change] Made the ship angular velocity damping less... broken.
2017-11-12 22:10:26 +00:00
Allanis
d0f3ff9d42 [Change] Single GLUQuadric object.
[Fix?] Was meant to have fixed laser drawing, I kinda failed. :D
2017-11-12 20:49:17 +00:00
Allanis
e43c75060f [Change] Improved mouse control.
[Add] Added a few shiptypes. Don't yell at me for pathetic names.
2017-11-12 20:19:10 +00:00
Allanis
68b4ba57da [Fix] Fixed the horrible rotating in external view. Also, the ships almost look badass now! 2017-11-12 19:11:14 +00:00
Allanis
f7a01575ab [Add] Uhm, apparently the new project stuff wasn't added. My bad. 2017-11-12 18:27:48 +00:00