Skip to content

Commit

Permalink
library: javadoc and whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jun 20, 2024
1 parent 57bdeaa commit c10f1fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions library/src/main/java/com/jme3/bullet/PhysicsSpace.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
import jolt.physics.collision.broadphase.ObjectVsBroadPhaseLayerFilterFn;

/**
* A space to simulate dynamic physics.
* A CollisionSpace to simulate dynamic physics, with its own
* {@code PhysicsSystem}.
*
* @author normenhansen
*/
Expand Down Expand Up @@ -247,7 +248,7 @@ public void addTickListener(PhysicsTickListener listener) {
}

/**
* Return the number of active bodies.
* Count how many active bodies are in the space.
*
* @return the count (≥0)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public Vec3d getLinearVelocityDp(Vec3d storeResult) {
}

/**
* Copy the location of the object's center to a Vector3f.
* Copy the location of the body's center to a Vector3f.
*
* @param storeResult storage for the result (modified if not null)
* @return a location vector (in physics-space coordinates, either
Expand All @@ -319,7 +319,7 @@ public Vector3f getPhysicsLocation(Vector3f storeResult) {
}

/**
* Copy the location of the object's center to a Vec3d.
* Copy the location of the body's center to a Vec3d.
*
* @param storeResult storage for the result (modified if not null)
* @return a location vector (in physics-space coordinates, either
Expand All @@ -343,7 +343,7 @@ public Vec3d getPhysicsLocationDp(Vec3d storeResult) {
}

/**
* Copy the orientation (rotation) of the object to a Quaternion.
* Copy the orientation (rotation) of the body to a {@code Quaternion}.
*
* @param storeResult storage for the result (modified if not null)
* @return a rotation Quaternion (in physics-space coordinates, either
Expand Down Expand Up @@ -570,6 +570,7 @@ public void setCollisionShape(CollisionShape desiredShape) {
if (isDynamic()) {
validateDynamicShape(desiredShape);
}

super.setCollisionShape(desiredShape);
rebuildRigidBody();
}
Expand Down

0 comments on commit c10f1fe

Please sign in to comment.