renamed physics_entity_solve_contacts (was default_contact_solver)
This commit is contained in:
parent
e86fa1bdef
commit
4047d04686
|
@ -63,7 +63,7 @@ void physics_entity_apply_collision_forces(PhysicsEntity self, List* contacts) {
|
|||
|
||||
}
|
||||
|
||||
void default_contact_solver(PhysicsEntity self, List* contacts) {
|
||||
void physics_entity_solve_contacts(PhysicsEntity self, List* contacts) {
|
||||
RigidBody* body = self.tc->get_rigidbody(self.data);
|
||||
const Transform pre_solve = *rigidbody_get_transform(body);
|
||||
// attempt to solve constraints
|
||||
|
|
|
@ -23,7 +23,7 @@ typedef struct {
|
|||
} PhysicsEntity;
|
||||
|
||||
extern void physics_entity_debug_draw(PhysicsEntity self);
|
||||
extern void default_contact_solver(PhysicsEntity self, List* contacts);
|
||||
extern void physics_entity_solve_contacts(PhysicsEntity self, List* contacts);
|
||||
extern void physics_entity_update(PhysicsEntity self);
|
||||
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ void player_spawn(Player* self, Vector at) {
|
|||
}
|
||||
|
||||
void player_collision_solver(Player* self, List* contacts) {
|
||||
default_contact_solver(Player_as_PhysicsEntity(self), contacts);
|
||||
physics_entity_solve_contacts(Player_as_PhysicsEntity(self), contacts);
|
||||
}
|
||||
|
||||
void player_start(Player* self) {
|
||||
|
|
|
@ -147,4 +147,5 @@ float* tile_instance_get_rotation(TileInstance* self) {
|
|||
return &self->transform.rotation;
|
||||
}
|
||||
|
||||
impl_PhysicsEntity_default_solver(tile_instance_solve_contacts, TileInstance)
|
||||
|
||||
void tile_instance_solve_contacts(TileInstance* self, List* contacts) {}
|
||||
|
|
Loading…
Reference in a new issue