Cleanup: clang-format

This commit is contained in:
Sergey Sharybin
2022-06-22 10:54:13 +02:00
parent 31d80ddeaa
commit a7b91fc8bc

View File

@@ -1964,24 +1964,24 @@ static void rigidbody_update_external_forces(Depsgraph *depsgraph,
float eff_loc[3], eff_vel[3];
/* create dummy 'point' which represents last known position of object as result of sim
*/
*/
/* XXX: this can create some inaccuracies with sim position,
* but is probably better than using un-simulated values? */
* but is probably better than using un-simulated values? */
RB_body_get_position(rbo->shared->physics_object, eff_loc);
RB_body_get_linear_velocity(rbo->shared->physics_object, eff_vel);
pd_point_from_loc(scene, eff_loc, eff_vel, 0, &epoint);
/* Calculate net force of effectors, and apply to sim object:
* - we use 'central force' since apply force requires a "relative position"
* which we don't have... */
* - we use 'central force' since apply force requires a "relative position"
* which we don't have... */
BKE_effectors_apply(effectors, NULL, effector_weights, &epoint, eff_force, NULL, NULL);
if (G.f & G_DEBUG) {
printf("\tapplying force (%f,%f,%f) to '%s'\n",
eff_force[0],
eff_force[1],
eff_force[2],
ob->id.name + 2);
eff_force[0],
eff_force[1],
eff_force[2],
ob->id.name + 2);
}
/* activate object in case it is deactivated */
if (!is_zero_v3(eff_force)) {