Techneck/code/source-c/world_physics.c

16 lines
432 B
C
Raw Normal View History

2023-10-15 12:41:53 +00:00
#include <world.h>
#include <stddef.h> // For NULL
void tc_initialize_chunk_physics(tc_chunk_s *chunk, void *userdata)
{
}
void tc_create_world_physics(tc_world_s *world, void *userdata)
{
world->physics = tc_new_physics_simulation();
tc_add_to_hooklist(&world->on_chunk_create, &tc_initialize_chunk_physics, NULL);
tc_add_to_hooklist(&world->on_chunk_update, &tc_initialize_chunk_physics, NULL);
}