Commit graph

153 commits

Author SHA1 Message Date
Joe Ardent
507b82a771 add rake to front wheel 2023-02-18 17:03:33 -08:00
Joe Ardent
c41fc78b00 Scale the noise down a smidge on the landscape. 2023-02-18 13:49:44 -08:00
Joe Ardent
2933dca90e Tweak some physics, try to reduce pitch stabilization. 2023-02-18 13:49:06 -08:00
Joe Ardent
4a80554740 add pitch_scale for pid controller 2023-02-17 21:53:34 -08:00
Joe Ardent
9e63186aa5 be more brake-aggressive 2023-02-17 18:54:42 -08:00
Joe Ardent
6fd4f7c2e0 merge of physics from flatlander 2023-02-17 18:03:17 -08:00
Joe Ardent
c194120538 fix steering and braking 2023-02-17 17:30:53 -08:00
Joe Ardent
b42ebd7873 make wheels less protruding in config 2023-02-15 21:55:10 -08:00
Joe Ardent
4f60743192 has joint for steering, can't seem to control it 2023-02-15 17:53:46 -08:00
Joe Ardent
fd4155ceab remove dead code 2023-02-15 16:17:31 -08:00
Joe Ardent
14c346eb84 adjust tunnel fix for flatland 2023-02-15 15:10:33 -08:00
Joe Ardent
fa59a81f05 simplify wheels 2023-02-15 14:52:29 -08:00
Joe Ardent
d2961bd448 Add axels to the wheels. 2023-02-15 14:36:56 -08:00
Joe Ardent
421f34fab7 Bring in wheels from rolling2, and shorten the body collider. 2023-02-15 11:38:46 -08:00
Joe Ardent
18615e9ac8 checkpoint 2023-02-05 15:41:23 -08:00
Joe Ardent
e666c972ac quasi-merge from rolling_wheels 2023-02-05 14:59:41 -08:00
Joe Ardent
936e3591d1 tweak restitution 2023-02-02 23:05:43 -08:00
Joe Ardent
a5b9e549db fix de-penetrator 2023-02-02 17:26:28 -08:00
Joe Ardent
c7680227e3 Finish splitting up bike module, fix de-penetrator. 2023-02-01 16:32:20 -08:00
Joe Ardent
71a91da77a Add readme and license option. Break bike module up. 2023-02-01 14:27:35 -08:00
Joe Ardent
7efa0a8ab2 Add system to de-intersect wheels and planet surface. 2023-01-30 16:05:42 -08:00
Joe Ardent
79b2d4b175 break up action module, actually do real for real PID 2023-01-29 17:02:16 -08:00
Joe Ardent
b9d49f6e1c use real PID for stability control 2023-01-29 14:53:47 -08:00
Joe Ardent
99d58cbcac checkpoint 2023-01-28 22:10:21 -08:00
Joe Ardent
c04fb9fa11 remove 'CyberBikeModel' marker component 2023-01-28 16:57:44 -08:00
Joe Ardent
e524decd38 got two wheels working pretty good
next step is to make the wheels have friction and to rotate
2023-01-28 16:46:24 -08:00
Joe Ardent
2436e27290 try interpolating more transforms, no dice 2023-01-26 22:28:28 -08:00
Joe Ardent
4708eabdd9 ok, the wheels keep going through the planet and getting stuck
I'm going to need to do like raycasting from each wheel or something to do this right.
2023-01-26 17:16:05 -08:00
Joe Ardent
e79661b7db tweakity-tweak 2023-01-25 17:39:32 -08:00
Joe Ardent
1b559f3d44 don't show the inspector unless inpsector is configured 2023-01-25 17:18:49 -08:00
Joe Ardent
651f471b97 add feature to enable/disable rapier debug render 2023-01-25 17:10:23 -08:00
Joe Ardent
738dd6569a shut the linter up 2023-01-25 15:35:28 -08:00
Joe Ardent
ff64bbeff3 add wheels maybe 2023-01-24 23:04:33 -08:00
Joe Ardent
3e9b079b58 checkpoint 2023-01-24 19:50:33 -08:00
Joe Ardent
9b12967abd added wheelconfig struct and hooked in egui inspector 2023-01-23 22:21:16 -08:00
Joe Ardent
bf35c963b2 add debug cam orbit controls 2023-01-23 20:12:15 -08:00
Joe Ardent
9d2e41a971 add offset resource for debug camera 2023-01-22 21:06:08 -08:00
Joe Ardent
cf449d9e56 checkpoint 2023-01-22 16:10:59 -08:00
Joe Ardent
f65282bb08 fix PID code, fuckin' with shit still. 2023-01-21 19:51:01 -08:00
Joe Ardent
39c5ced896 update cameras and model 2023-01-20 23:33:21 -08:00
Joe Ardent
f7c1698602 fix camera placements 2023-01-20 23:05:43 -08:00
Joe Ardent
065af95aa0 fix light viz 2023-01-20 17:21:12 -08:00
Joe Ardent
efb70e16d0 fix cyberbike visibility 2023-01-20 15:07:37 -08:00
Joe Ardent
ca59748849 compiles 2023-01-20 14:40:51 -08:00
Joe Ardent
bd96c52f3a Update to Bevy 0.8. Not showing the cyberbike for some reason.
Physics is still probably fucked.
2022-08-13 15:30:37 -07:00
Joe Ardent
1579c3d972 Builds and runs, but physics is fucked. 2022-05-08 10:58:48 -07:00
Joe Ardent
413ac493df Add PID for pitch too. 2022-04-02 18:25:29 -07:00
Joe Ardent
c37cf0a6b1 tweak the constants 2022-03-21 16:04:06 -07:00
Joe Ardent
464e64f271 Minor tweak and update. 2022-03-15 18:39:59 -07:00
Joe Ardent
139b8af742 Add PID roll stabilizer. 2022-03-14 23:58:58 -07:00
Joe Ardent
f26226dcb7 Just some tweaks. 2022-03-14 15:30:45 -07:00
Joe Ardent
0fc179596a Add more wheels and mass. 2022-03-13 23:37:11 -07:00
Joe Ardent
315f35e8e3 Adds "wheels" to cyberbike.
The `parallel` feature doesn't work with joints in Rapier.
2022-03-13 15:54:33 -07:00
Joe Ardent
8979660775 Major reorg, works like before.
Still need to add the child colliders for the "wheels".
2022-03-12 16:33:07 -08:00
Joe Ardent
10b9414989 Fail at adding joints, rename geometry module.
Time to move the dynamic geo into its own sitch.
2022-03-12 14:56:32 -08:00
Joe Ardent
b6fa54a99c Minor tidy. 2022-03-01 22:31:44 -08:00
Joe Ardent
93dd8bde92 Add debug camera and switching.
Debug camera is in front and off to the side.
2022-03-01 21:42:16 -08:00
Joe Ardent
2d950401dc Remove normals in setup for planet.
They get generated later in glamor.rs as flat normals on de-duped verts.
2022-03-01 20:52:31 -08:00
Joe Ardent
d068ba30db Fix overhangs in generated terrain. 2022-02-28 18:18:23 -08:00
Joe Ardent
281d8b8050 Add feature to enable debug collider viz. 2022-02-28 15:14:38 -08:00
Joe Ardent
181110c309 Jesus, the cyber bike is fucking massive. 2022-02-27 16:18:26 -08:00
Joe Ardent
5b4b526aaf Make bike model, body, and collider explicit, add debug collider viz. 2022-02-26 23:31:01 -08:00
Joe Ardent
37e8e40c3f Move collider setup to separate file and plugin.
Just make more room in the actions file for fancier dynamic stuff.
2022-02-25 14:53:00 -08:00
Joe Ardent
b101d8bc15 Really really re-enable CCD. 2022-02-25 13:18:44 -08:00
Joe Ardent
79ddc3f951 Add drag, re-enable CCD for bike. 2022-02-24 23:20:29 -08:00
Joe Ardent
83af546e63 Disable CCD, embiggen world, increase FoV. 2022-02-23 17:38:24 -08:00
Joe Ardent
d36452569b minor tidy 2022-02-21 17:04:46 -08:00
Joe Ardent
a089f3da46 Add proper collision shape for displaced geo. 2022-02-21 15:42:44 -08:00
Joe Ardent
373fc30d56 High-perf wireframe for planet. 2022-02-21 13:08:49 -08:00
Joe Ardent
212d9daac9 Manually construct Mesh from IcoSphere to do noise displacement. 2022-02-20 12:40:42 -08:00
Joe Ardent
8000f1f5b8 Enable continuous collision detection and deterministic torque application order. 2022-02-17 22:41:13 -08:00
Joe Ardent
cd16490563 Just more physics tweaks.
Things are stable and it doesn't get its steering stuck, plus it spawns near the ground.
2022-02-13 13:58:49 -08:00
Joe Ardent
93d1db607a Tweak the settings. 2022-02-08 22:27:41 -08:00
Joe Ardent
3cbdb522f2 Replicates old feel with Rapier-native code. 2022-02-08 22:00:05 -08:00
Joe Ardent
5e4ef7d5de Add input forces that don't work. 2022-02-08 13:27:57 -08:00
Joe Ardent
beb2298fe3 Use Rapier directly for collision handling and gravity.
Input still not working. Also, make the cybersphere transparent.
2022-02-07 20:28:06 -08:00
Joe Ardent
d793b6e986 Minor color tweaks. 2022-02-01 11:44:13 -08:00
Joe Ardent
3a1c4ebff8 Handle pitching the camera with controller. 2022-01-26 16:53:37 -08:00
Joe Ardent
2bd9506ca2 Drop light count to avoid panic.
There was a fix in the git version for this panic, but not in the latest release yet.
2022-01-26 14:26:02 -08:00
Joe Ardent
c11845db90 Use bevy_polyline to wireframe the big sphere. 2022-01-26 13:33:48 -08:00
Joe Ardent
f951b7b96b rename fn 2022-01-19 16:08:20 -08:00
Joe Ardent
c0227f4203 Remove dumb heron import. 2022-01-19 15:11:48 -08:00
Joe Ardent
5978191691 Re-org the lights, tweak the colors. 2022-01-19 15:07:24 -08:00
Joe Ardent
13543a6553 Blink moving lights' meshes on and off. 2022-01-18 22:20:58 -08:00
Joe Ardent
18032861d2 Get a bunch of lights to rotate. 2022-01-18 20:08:47 -08:00
Joe Ardent
cfc32a741f Minor tidy. 2022-01-17 13:40:31 -08:00
Joe Ardent
20f68b2bec Make the planet wireframe. 2022-01-13 22:05:51 -08:00
Joe Ardent
768bdf67ad More minor cleanup, remove pitch control, embiggen sphere. 2022-01-13 17:32:39 -08:00
Joe Ardent
4b0dc168be tweak 2022-01-13 16:54:43 -08:00
Joe Ardent
7de11bb8a9 Clean up Queries, add more Cyber. 2022-01-13 16:14:08 -08:00
Joe Ardent
6a79816968 Rename "physics" to "action", the better to go with lights and camera. 2022-01-13 14:28:44 -08:00
Joe Ardent
3ebe2f57ce Smarter vel zeroing. 2022-01-12 21:13:30 +00:00
Joe Ardent
483dc3f864 Refactor done, still works.
Mostly resisted the urge to add or change functionality. Checks clean and should have the foundation
for real game-focused devel going forward.
2022-01-12 00:22:20 -08:00
Joe Ardent
7ab0730dfd Put the camera behind the bike. 2022-01-07 00:45:05 -08:00
Joe Ardent
f53cd2f848 Add collision detection, reaction, and gravity. 2022-01-07 00:01:26 -08:00
Joe Ardent
2885be2003 Replace PlayerState resource with Component. 2022-01-07 00:01:26 -08:00
Joe Ardent
9a7b3b511a Corrects orientation for local up. Adds dbg ui for orientation.
Still using the model as the camera stand-in. Next up is enabling collision detection and gravity.
2022-01-07 00:01:26 -08:00
Joe Ardent
81c1a0e685 Add the bike model to the scene; shows rotation is messed up. 2022-01-07 00:01:26 -08:00
Joe Ardent
75870d0161 gamepad controls the camera 2021-12-24 18:07:09 -08:00
Joe Ardent
3f322ba0ea Shrink planet, get rotating visible lights near the surface. 2021-12-19 23:11:23 -08:00