diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-10 10:19:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-10 14:04:51 +0300 |
commit | 2abfcebb0eb7989e3d1e7d03f37ecf5c088210af (patch) | |
tree | e7a1ad5912b4661d4ece743f4f7fd86e6bf4d3c4 /source/blender/blenkernel/intern/rigidbody.c | |
parent | c735aca42e9f5961fec7e5d5fc196b5bd6b85f56 (diff) |
Cleanup: use C comments for descriptive text
Follow our code style guide by using C-comments for text descriptions.
Diffstat (limited to 'source/blender/blenkernel/intern/rigidbody.c')
-rw-r--r-- | source/blender/blenkernel/intern/rigidbody.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/rigidbody.c b/source/blender/blenkernel/intern/rigidbody.c index 6b2b7271c76..586aeb274a5 100644 --- a/source/blender/blenkernel/intern/rigidbody.c +++ b/source/blender/blenkernel/intern/rigidbody.c @@ -509,7 +509,7 @@ static rbCollisionShape *rigidbody_validate_sim_shape_helper(RigidBodyWorld *rbw * - assume even distribution of mass around the Object's pivot * (i.e. Object pivot is centralized in boundbox) */ - // XXX: all dimensions are auto-determined now... later can add stored settings for this + /* XXX: all dimensions are auto-determined now... later can add stored settings for this */ /* get object dimensions without scaling */ bb = BKE_object_boundbox_get(ob); if (bb) { @@ -636,7 +636,7 @@ static void rigidbody_validate_sim_shape(RigidBodyWorld *rbw, Object *ob, bool r /* --------------------- */ /* helper function to calculate volume of rigidbody object */ -// TODO: allow a parameter to specify method used to calculate this? +/* TODO: allow a parameter to specify method used to calculate this? */ void BKE_rigidbody_calc_volume(Object *ob, float *r_vol) { RigidBodyOb *rbo = ob->rigidbody_object; @@ -653,7 +653,7 @@ void BKE_rigidbody_calc_volume(Object *ob, float *r_vol) * (i.e. Object pivot is centralized in boundbox) * - boundbox gives full width */ - // XXX: all dimensions are auto-determined now... later can add stored settings for this + /* XXX: all dimensions are auto-determined now... later can add stored settings for this */ BKE_object_dimensions_get(ob, size); if (ELEM(rbo->shape, RB_SHAPE_CAPSULE, RB_SHAPE_CYLINDER, RB_SHAPE_CONE)) { @@ -742,7 +742,7 @@ void BKE_rigidbody_calc_center_of_mass(Object *ob, float r_center[3]) * (i.e. Object pivot is centralized in boundbox) * - boundbox gives full width */ - // XXX: all dimensions are auto-determined now... later can add stored settings for this + /* XXX: all dimensions are auto-determined now... later can add stored settings for this */ BKE_object_dimensions_get(ob, size); /* calculate volume as appropriate */ @@ -2034,7 +2034,7 @@ void BKE_rigidbody_sync_transforms(RigidBodyWorld *rbw, Object *ob, float ctime) !(ob->base_flag & BASE_SELECTED && G.moving & G_TRANSFORM_OBJ)) { float mat[4][4], size_mat[4][4], size[3]; - normalize_qt(rbo->orn); // RB_TODO investigate why quaternion isn't normalized at this point + normalize_qt(rbo->orn); /* RB_TODO investigate why quaternion isn't normalized at this point */ quat_to_mat4(mat, rbo->orn); copy_v3_v3(mat[3], rbo->pos); @@ -2200,7 +2200,7 @@ void BKE_rigidbody_do_simulation(Depsgraph *depsgraph, Scene *scene, float ctime } /* try to read from cache */ - // RB_TODO deal with interpolated, old and baked results + /* RB_TODO deal with interpolated, old and baked results */ bool can_simulate = (ctime == rbw->ltime + 1) && !(cache->flag & PTCACHE_BAKED); if (BKE_ptcache_read(&pid, ctime, can_simulate) == PTCACHE_READ_EXACT) { |