You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Update space parameters in 2D and 3D
Clarified space parameters for contacts and added missing ones. List of changes: -Add contact bias to space parameters -Add solver iterations to space parameters, instead of a specific physics server function -Renamed BODY_MAX_ALLOWED_PENETRATION to CONTACT_MAX_ALLOWED_PENETRATION to make it consistent with other contact parameters
This commit is contained in:
@@ -181,14 +181,14 @@ void GodotStep3D::_check_suspend(const LocalVector<GodotBody3D *> &p_body_island
|
||||
}
|
||||
}
|
||||
|
||||
void GodotStep3D::step(GodotSpace3D *p_space, real_t p_delta, int p_iterations) {
|
||||
void GodotStep3D::step(GodotSpace3D *p_space, real_t p_delta) {
|
||||
p_space->lock(); // can't access space during this
|
||||
|
||||
p_space->setup(); //update inertias, etc
|
||||
|
||||
p_space->set_last_step(p_delta);
|
||||
|
||||
iterations = p_iterations;
|
||||
iterations = p_space->get_solver_iterations();
|
||||
delta = p_delta;
|
||||
|
||||
const SelfList<GodotBody3D>::List *body_list = &p_space->get_active_body_list();
|
||||
|
||||
Reference in New Issue
Block a user