16 lines
432 B
C
16 lines
432 B
C
|
#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);
|
||
|
}
|
||
|
|