Sara
|
8b6cc6d319
|
removed duplicate on_collision call from physics_world
|
2023-10-25 20:25:31 +02:00 |
|
Sara
|
73f40863db
|
now exiting physics_world_remove_entity when an entity is found and removed
|
2023-10-25 20:25:12 +02:00 |
|
Sara
|
f11ffc13ff
|
simplified list_foreach loop with a single-line body
|
2023-10-25 20:24:50 +02:00 |
|
Sara
|
fccd08466a
|
player now hardcoded to spawn in the level rather than on top of it
|
2023-10-25 20:24:29 +02:00 |
|
Sara
|
eeb1e1d438
|
added CHECK assertion macro
|
2023-10-25 20:24:08 +02:00 |
|
Sara
|
3e6ee52d3e
|
moved "no collision" in _internal_collision_get_overlap
|
2023-10-25 20:24:00 +02:00 |
|
Sara
|
46602abbae
|
inverted incorrectly oriented comparison in collision_check
|
2023-10-25 20:23:28 +02:00 |
|
Sara
|
63ce106c78
|
updated levels
|
2023-10-25 20:23:05 +02:00 |
|
Sara
|
3f8353a070
|
reimported player sprite
|
2023-10-25 14:12:00 +02:00 |
|
Sara
|
75e5feecf2
|
player can only adjust movement when on the ground
|
2023-10-25 14:11:43 +02:00 |
|
Sara
|
8efbcee7f3
|
removed debug draw call from fencer.c
|
2023-10-25 14:11:31 +02:00 |
|
Sara
|
3033f36c90
|
changed player hair
|
2023-10-25 14:11:12 +02:00 |
|
Sara
|
fa7c03dafc
|
made more space in level_0
|
2023-10-25 14:11:08 +02:00 |
|
Sara
|
23454d3065
|
PhysicsEntity::on_collision will now be called for contacts
|
2023-10-25 12:18:17 +02:00 |
|
Sara
|
979b7cd83b
|
added game_time() global getter
|
2023-10-25 12:17:59 +02:00 |
|
Sara
|
678aae3abc
|
added is_grounded
|
2023-10-25 12:17:50 +02:00 |
|
Sara
|
32e6068f2a
|
simplified player spawn function
|
2023-10-25 12:17:45 +02:00 |
|
Sara
|
b487b2582e
|
moved call to apply forces to physics solver
|
2023-10-25 11:25:35 +02:00 |
|
Sara
|
1e2d9a7067
|
cleanup in physics entity and physics world
|
2023-10-25 11:23:52 +02:00 |
|
Sara
|
3263c87cca
|
implemented jump
|
2023-10-25 00:14:35 +02:00 |
|
Sara
|
07f534f796
|
fixed collision solving causing an inability to escape a surface
|
2023-10-24 23:57:38 +02:00 |
|
Sara
|
d3612873ff
|
removed minimum move from rigidbody_integrate_forces
|
2023-10-24 23:50:50 +02:00 |
|
Sara
|
fc0260a100
|
events are now handled before the update loop
|
2023-10-24 23:50:33 +02:00 |
|
Sara
|
081be0a0f1
|
constraints now affect velocity
|
2023-10-24 23:50:10 +02:00 |
|
Sara
|
f8462d8e2c
|
reworked constraint solver to work relative to the overlap point
|
2023-10-24 23:49:59 +02:00 |
|
Sara
|
635fb7b69f
|
removed impl macro for default physics solver
|
2023-10-24 23:18:55 +02:00 |
|
Sara
|
4047d04686
|
renamed physics_entity_solve_contacts (was default_contact_solver)
|
2023-10-24 23:18:13 +02:00 |
|
Sara
|
e86fa1bdef
|
implemented collision constraint solver
|
2023-10-24 23:14:30 +02:00 |
|
Sara
|
256fef97d9
|
Did not implement edge based collision (performance concerns) merged other modifications
|
2023-10-23 21:59:30 +02:00 |
|
Sara
|
0a9c6745ad
|
added shape_get_points
|
2023-10-23 21:59:05 +02:00 |
|
Sara
|
fa2ca7241c
|
added anglebetween to vmathf
|
2023-10-23 21:59:05 +02:00 |
|
Sara
|
1f56608950
|
shape now has shape_get_points for getting the List of points
|
2023-10-23 21:59:05 +02:00 |
|
Sara
|
d76f9a0af9
|
Merge branch 'main' into edge-based-collision
|
2023-10-23 21:59:05 +02:00 |
|
Sara
|
a84e8dbc5b
|
added shape_get_points
|
2023-10-23 21:54:01 +02:00 |
|
Sara
|
919aa8406b
|
shape now uses list
|
2023-10-22 12:02:05 +02:00 |
|
Sara
|
f373fada26
|
added custom collision solvers
|
2023-10-22 11:25:44 +02:00 |
|
Sara
|
788c1970e2
|
disabled some debug drawing
|
2023-10-19 18:04:27 +02:00 |
|
Sara
|
a52169892d
|
separated rigidbody handle and solve contact functions
|
2023-10-19 18:04:13 +02:00 |
|
Sara
|
90b93a8817
|
replaced spring function
|
2023-10-19 18:03:34 +02:00 |
|
Sara
|
9541157e04
|
disabled sprite drawing for debugging
|
2023-10-19 13:51:24 +02:00 |
|
Sara
|
aa9a51dc76
|
improvements to collision solvers
|
2023-10-19 13:51:17 +02:00 |
|
Sara
|
169fd63d9e
|
now also displaying force in debug display
|
2023-10-19 13:50:58 +02:00 |
|
Sara
|
092e8670cd
|
player now spawns at 5,-5
|
2023-10-19 13:50:43 +02:00 |
|
Sara
|
b8ae02109a
|
collision relative velocity is now calculated in one line
|
2023-10-19 13:50:35 +02:00 |
|
Sara
|
37b1fc3228
|
implemented velocity verlet integration
|
2023-10-18 22:51:56 +02:00 |
|
Sara
|
2b1014e603
|
modified hardcoded values for collision forces
|
2023-10-18 13:49:54 +02:00 |
|
Sara
|
19daff6ddd
|
using better method to decide whether or not a collision is valid
|
2023-10-18 13:49:41 +02:00 |
|
Sara
|
ed274c415f
|
IT FUCKING WORKS (collision resolution is now working)
|
2023-10-18 13:21:02 +02:00 |
|
Sara
|
74369d88fe
|
more debugging for collision sovler
|
2023-10-17 17:17:16 +02:00 |
|
Sara
|
c7e6b2aa29
|
progress on physics
|
2023-10-16 21:31:48 +02:00 |
|