Skip to content

Commit

Permalink
javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Dec 10, 2024
1 parent 416540f commit f5c592c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/github/stephengold/joltjni/BodyIdArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public BodyIdArray(int length) {
/**
* Copy the ID at the specified index.
*
* @param elementIndex the index from which to get the ID (≥0)
* @param elementIndex the index from which to copy the ID (≥0)
* @return a new JVM object with the pre-existing native object assigned
*/
public ConstBodyId get(int elementIndex) {
Expand All @@ -59,10 +59,10 @@ public ConstBodyId get(int elementIndex) {
}

/**
* Alter the specified ID at the specified index.
* Store the specified ID at the specified index.
*
* @param elementIndex the index at which to put the ID (≥0)
* @param id the ID to put (not null)
* @param elementIndex the index at which to store the ID (≥0)
* @param id the ID to store (not null, unaffected)
*/
public void set(int elementIndex, BodyId id) {
long vectorId = va();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ public void resize(int numIds) {
}

/**
* Put the specified ID at the specified index.
* Store the specified ID at the specified index.
*
* @param elementIndex the index at which to put the ID (≥0)
* @param id the ID to put (not null)
* @param elementIndex the index at which to store the ID (≥0)
* @param id the ID to store (not null)
*/
@Override
public void set(int elementIndex, BodyId id) {
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/github/stephengold/joltjni/RagdollRef.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ public void getRootTransform(RVec3 storeLocation, Quat storeOrientation) {
* @param storeLocation storage for the root location (not null, modified)
* @param storeOrientation storage for the root orientation (not null,
* modified)
* @param lockBodies (default=true)
* @param lockBodies {@code true} → use the locking body interface,
* {@code false} → use the non-locking body interface (default=true)
*/
public void getRootTransform(
RVec3 storeLocation, Quat storeOrientation, boolean lockBodies) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void calculateConstraintIndexToBodyIdxPair() {
}

/**
* Generate a ragdoll instance from the settings.
* Generate a ragdoll instance from the settings, which are unaffected.
*
* @param groupId the collision group for the bodies
* @param userData the desired user-data value
Expand Down

0 comments on commit f5c592c

Please sign in to comment.