PhysX work

This commit is contained in:
2025-07-11 01:39:46 +02:00
parent 7e354b0417
commit d5a21cb3ee
7 changed files with 169 additions and 570 deletions

View File

@@ -157,16 +157,18 @@ coven_run :: (game_update_proc: (float), game_editor_update_proc: (float), game_
if engine.current_scene != null && !engine.paused {
update_animators(clamped_dt);
update_mesh_colliders(engine.current_scene);
update_physics(engine.current_scene, clamped_dt);
tick_physx(engine.current_scene.physx_scene, clamped_dt);
pre_physx_sync(engine.current_scene);
tick_physx(*engine.current_scene.physx_scene, clamped_dt);
post_physx_sync(engine.current_scene);
game_update_post_physics_proc(clamped_dt);
}
} else {
game_editor_update_proc(clamped_dt);
if engine.current_scene != null {
update_trigger_mesh_colliders(engine.current_scene);
//update_trigger_mesh_colliders(engine.current_scene);
}
}
@@ -220,7 +222,6 @@ switch_engine_mode :: (to_mode: Engine_Mode) {
#load "renderer/engine_buffers.jai";
#load "renderer/renderer.jai";
#load "windowing/window.jai";
#load "physics/physics.jai";
#load "core/mesh_entity.jai";
#load "core/string_helpers.jai";