Skip to content

Commit

Permalink
BodyCreationSettings: minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Oct 10, 2024
1 parent 69c2ea4 commit 90b1dd1
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,15 @@ public void setOverrideMassProperties(EOverrideMassProperties setting) {
* Alter the (initial) location of the body's origin (which might not
* coincide with its center of mass). (native attribute: mPosition)
*
* @param loc the desired location (in physics-system coordinates, not null,
* unaffected, default=(0,0,0))
* @param location the desired location (in physics-system coordinates, not
* null, unaffected, default=(0,0,0))
*/
public void setPosition(RVec3Arg loc) {
public void setPosition(RVec3Arg location) {
long bodySettingsVa = va();
setPosition(bodySettingsVa, loc.xx(), loc.yy(), loc.zz());
double xx = location.xx();
double yy = location.yy();
double zz = location.zz();
setPosition(bodySettingsVa, xx, yy, zz);
}

/**
Expand Down

0 comments on commit 90b1dd1

Please sign in to comment.