Diren D Bharwani
2737113a84
forces are cleared after first iteration
2023-03-22 22:25:11 +08:00
Diren D Bharwani
e02e3f5faf
silly mistake
2023-03-22 22:21:39 +08:00
Diren D Bharwani
31dd3390c2
Fixed consistency of simulating ghost bodies
2023-03-22 20:41:40 +08:00
Brandon Mak
ba732ea64c
Fixed trajectory renderable
2023-03-20 16:38:15 +08:00
Diren D Bharwani
11878d4cc2
reworked simulate body
2023-03-20 14:53:36 +08:00
Diren D Bharwani
97013ba73c
Added override for simulating gravity in SimulateBody method
2023-03-09 21:18:05 +08:00
Diren D Bharwani
35b60a24e4
Added variable to control number of simulation steps for the SimulateBody method
2023-03-08 19:06:57 +08:00
Diren D Bharwani
6f8387a5ea
Fixed bug where gravity scales were initialised to NaN
2023-03-08 12:59:51 +08:00
Diren D Bharwani
c36345c60c
Added a simulate body method
...
Raycast effectiveness is untested, but simulation logic matches standard 3D rigid body simulation methods
2023-03-07 18:48:06 +08:00
Diren D Bharwani
cc2afbcf9f
Fixed duplicate collision calls
2023-03-07 14:13:06 +08:00
Diren D Bharwani
2197a3bcb9
Added capsule collider
...
Debug draw is a bit wonky. Further polish needed,
2023-03-07 04:51:58 +08:00
Diren D Bharwani
33ccdccd8a
Expanded Physics Settings
...
Editor Menu needs to be resized...idgi...
2023-03-07 03:23:40 +08:00
Diren D Bharwani
e89f5df35f
Added physics constants
2023-03-06 18:17:13 +08:00
Diren D Bharwani
78a3bf4575
Added function to test an AABB against the physics world
...
Update React Dependency
2023-03-06 17:44:58 +08:00
Diren D Bharwani
d59f4e88c2
Added gravity scale
...
Update react dependency
2023-03-05 23:39:33 +08:00
Glence
bf5472e2c6
stuff dont ask me
2023-03-05 15:35:57 +08:00
Diren D Bharwani
c0249531d3
Potential fix to physics collision states being incorrect
2023-02-04 15:18:15 +08:00
Diren D Bharwani
638286b357
Fixed missing trigger state
2023-02-04 01:57:27 +08:00
Diren D Bharwani
ff6ee80df2
Fixed bug where collision tag file could not be editir
...
Fuck file i/o
2023-02-03 23:51:31 +08:00
Diren D Bharwani
7a79cda729
Reworked Collision Tag Interface and Logic
2023-02-03 23:22:21 +08:00
Diren D Bharwani
c61be35da0
Merge remote-tracking branch 'origin/main' into SP3-2-Physics
2023-02-03 22:44:58 +08:00
Glence
5284066cee
Merge branch 'main' into PlayerController
2023-02-03 21:29:02 +08:00
Glence
2ee46f33df
update collision tag to have a save button and clamp raycast draw
2023-02-03 21:28:50 +08:00
Xiao Qi
c9db8262b7
Added preprocessor checks for editor
2023-02-03 19:37:56 +08:00
Diren D Bharwani
36de32447d
Fixed some bugs with serialisation
2023-02-03 18:40:45 +08:00
Diren D Bharwani
c73275f2d3
Added temporary use of collision layers to C# and fixed raycast drawing
2023-02-03 16:11:30 +08:00
Diren D Bharwani
b6d91d5492
Fixed bug with collision tags not behaving as intended
...
Why the damn hell must react's system be so confusing??
2023-02-03 01:37:45 +08:00
Diren D Bharwani
931f6fe5e2
Fixed almost everything. Ray debug drawing has a small bug
2023-02-02 20:56:55 +08:00
Diren D Bharwani
d5c731dd20
Fixed collision shape debug drawing and more serialisation bugs
2023-02-02 20:48:32 +08:00
Diren D Bharwani
931ed58287
Added individual collider debug drawing
2023-02-02 20:19:21 +08:00
Diren D Bharwani
3593df3ada
Fixed collider shape serialisation
2023-02-02 20:15:59 +08:00
Diren D Bharwani
71f4cdd29e
Fixed rigidbody serialisation
2023-02-02 19:23:42 +08:00
Diren D Bharwani
6a57be2e60
Refactored old physics to match new interface
...
Compiles but still buggy, need a bit of time to clear up all the bugs
2023-02-02 19:06:56 +08:00
XiaoQiDigipen
3ff2e6bb92
Revert "Implemented a custom physics engine"
2023-01-30 14:40:55 +08:00
Diren D Bharwani
4ed7aa3aed
Reverted an attempt to stabilise edge detection between polyhedrons
2023-01-23 03:03:40 +08:00
Diren D Bharwani
5730381302
Physics objects can be implicity static if only a collider was added.
...
Removed the need to create an extra body. Math is great.
2023-01-23 00:56:46 +08:00
Diren D Bharwani
a0f6cd3ae7
Cached SAT for improved stability
...
The effects of baumgarte stabilisation can be rather obvious especially when polyhedrons are thrown around at angles. Regardless, the system is relatively stable bar the added energy from the solving method, which may make for a more "bombastic" physics playground
2023-01-23 00:37:22 +08:00
Diren D Bharwani
0c3106f15b
Abstracted contact derivation as setup for cached SAT
2023-01-22 19:20:03 +08:00
Diren D Bharwani
1dc16fdcda
Fixed typos
2023-01-22 17:38:51 +08:00
Diren D Bharwani
c077575a73
Fixed convex-convex face detection
...
Minor bugs with contact point detection. Will test more before pushing into main
2023-01-16 15:01:14 +08:00
Diren D Bharwani
85f0902c2d
Removed unused collision table and fixed bug with kinematic bodies exploding
2023-01-16 03:48:08 +08:00
Diren D Bharwani
19bffc9124
First half of re-implementing face-face contact derivation
2023-01-16 02:44:27 +08:00
Diren D Bharwani
dab109bc77
Fixed a fatal error with rigid body rotations.
2023-01-16 02:43:31 +08:00
Diren D Bharwani
ef5016351b
Reverted changes to inertia tensors
...
Created a new branch since I reverted to an older commit but kept some new updates. This will be the main branch moving forward.
2023-01-13 15:26:21 +08:00
Diren D Bharwani
8ca4045d55
R for retard
2023-01-05 17:53:48 +08:00
Diren D Bharwani
0c92e7ff6c
Added more comments and clarity for polyhedron edge contacts
2023-01-05 14:40:59 +08:00
Diren D Bharwani
68e11ba48e
Added edge vs edge contacts for convex polyhedron collisions
2023-01-05 13:42:17 +08:00
Diren D Bharwani
c484a088fd
Added first half of Gauss Map Optimised SAT
2023-01-05 01:12:25 +08:00
Diren D Bharwani
dffdec9d9c
Cleaned up colliders
2023-01-04 19:45:41 +08:00
Diren D Bharwani
dd2fc934a2
Removed Redundant Geometry
2023-01-04 17:48:08 +08:00