|
JSim 2026.06.01-p(1)
|
Classes | |
| class | Helper |
Static Public Member Functions | |
| static synchronized void | forceLoad () |
| static native int | initialize () |
| static native long | createWorld (double fixedDtSeconds, boolean enableGravity) |
| static native void | destroyWorld (long worldHandle) |
| static native int | createBody (long worldHandle, double massKg) |
| static native int | createGamepiece (long worldHandle) |
| static native int | createGamepiece (long worldHandle, double radiusMeters, double massKg, double restitution) |
| static native int | createGamepieceWithType (long worldHandle, int type, double radiusMeters, double massKg, double restitution) |
| static native int | createGamepieceWithTypeName (long worldHandle, String typeName, double radiusMeters, double massKg, double restitution) |
| static native String | getGamepieceTypeName (long worldHandle, int gamepieceIndex) |
| static native int | setBodyPosition (long worldHandle, int bodyIndex, double xMeters, double yMeters, double zMeters) |
| static native int | setBodyLinearVelocity (long worldHandle, int bodyIndex, double vxMps, double vyMps, double vzMps) |
| static native int | setBodyOrientation (long worldHandle, int bodyIndex, double qw, double qx, double qy, double qz) |
| static native int | setBodyGravityEnabled (long worldHandle, int bodyIndex, boolean enabled) |
| static native int | setBodyMaterial (long worldHandle, int bodyIndex, double restitution, double frictionKinetic, double frictionStatic, double collisionDamping) |
| static native int | setBodyMaterialId (long worldHandle, int bodyIndex, int materialId) |
| static native int | setBodyCollisionFilter (long worldHandle, int bodyIndex, int collisionLayerBits, int collisionMaskBits) |
| static native int | setBodyAerodynamicSphere (long worldHandle, int bodyIndex, double radiusMeters, double dragCoefficient) |
| static native int | setBodyAerodynamicBox (long worldHandle, int bodyIndex, double xMeters, double yMeters, double zMeters, double dragCoefficient) |
| static native int | pickGamepiece (long worldHandle, int gamepieceIndex, double intakeX, double intakeY, double intakeZ, double captureRadius, double carryOffsetX, double carryOffsetY, double carryOffsetZ) |
| static native int | placeGamepiece (long worldHandle, int gamepieceIndex, double xMeters, double yMeters, double zMeters) |
| static native int | outtakeGamepiece (long worldHandle, int gamepieceIndex, double px, double py, double pz, double vx, double vy, double vz) |
| static native int | setGamepiecePosition (long worldHandle, int gamepieceIndex, double xMeters, double yMeters, double zMeters) |
| static native int | setGamepieceLinearVelocity (long worldHandle, int gamepieceIndex, double vxMps, double vyMps, double vzMps) |
| static native int | getGamepiecePosition (long worldHandle, int gamepieceIndex, double[] outXyzMeters) |
| static native int | getGamepieceLinearVelocity (long worldHandle, int gamepieceIndex, double[] outVxyzMps) |
| static native int | setWorldGravity (long worldHandle, double gxMps2, double gyMps2, double gzMps2) |
| static native int | setWorldAerodynamics (long worldHandle, boolean enabled, double airDensityKgPm3, double linearDragNPerMps, double magnusCoefficient, double defaultDragCoefficient, double defaultReferenceAreaM2) |
| static native int | setMaterialInteraction (long worldHandle, int materialAId, int materialBId, double restitution, double friction, boolean enabled) |
| static native int | stepWorld (long worldHandle, int steps) |
| static native int | getBodyPosition (long worldHandle, int bodyIndex, double[] outXyzMeters) |
| static native int | getBodyLinearVelocity (long worldHandle, int bodyIndex, double[] outVxyzMps) |
| static native int | getBodyOrientation (long worldHandle, int bodyIndex, double[] outWxyz) |
| static native int | getBodyPose7Array (long worldHandle, double[] outPose7) |
| static native int | getBodyVelocity6Array (long worldHandle, double[] outVelocity6) |
| static native int | getBodyState13Array (long worldHandle, double[] outState13) |
JNI entry points for the vendor physics driver.
|
static |
Creates a body in the given world and returns its native index.
| worldHandle | the native world handle |
| massKg | the body mass in kilograms |
|
static |
Creates a generic gamepiece using the legacy ball-compatible defaults.
| worldHandle | the native world handle |
|
static |
Creates a generic gamepiece with a spherical hitbox in the world.
| worldHandle | the native world handle |
| radiusMeters | sphere hitbox radius in meters |
| massKg | gamepiece mass in kilograms |
| restitution | coefficient of restitution in [0, 1] |
|
static |
Creates a generic gamepiece with explicit type tag.
| worldHandle | native world handle |
| type | ordinal value from GamePieceType |
| radiusMeters | sphere radius in meters |
| massKg | mass in kilograms |
| restitution | coefficient of restitution |
|
static |
Creates a generic gamepiece with a string type name.
| worldHandle | native world handle |
| typeName | human readable type name (e.g. "generic_sphere") |
| radiusMeters | sphere radius in meters |
| massKg | mass in kilograms |
| restitution | coefficient of restitution |
|
static |
Creates a native world handle.
| fixedDtSeconds | the fixed simulation timestep in seconds |
| enableGravity | true to enable gravity for the world |
|
static |
Destroys a native world handle.
| worldHandle | the native world handle to destroy |
|
inlinestatic |
Forces the native library to load.
|
static |
Reads a body's linear velocity into outVxyzMps.
| worldHandle | the native world handle |
| bodyIndex | the native body index |
| outVxyzMps | the output array that receives the linear velocity |
|
static |
Reads a body's orientation as a quaternion into outWxyz.
| worldHandle | the native world handle |
| bodyIndex | the native body index |
| outWxyz | the output array that receives qw,qx,qy,qz |
|
static |
Exports flattened body poses as [x, y, z, qw, qx, qy, qz] blocks.
| worldHandle | the native world handle |
| outPose7 | the destination array sized for N*7 entries |
|
static |
Reads a body's position into outXyzMeters.
| worldHandle | the native world handle |
| bodyIndex | the native body index |
| outXyzMeters | the output array that receives the position |
|
static |
Exports flattened full body state as [x, y, z, qw, qx, qy, qz, vx, vy, vz, wx, wy, wz] blocks.
| worldHandle | the native world handle |
| outState13 | the destination array sized for N*13 entries |
|
static |
Exports flattened body velocities as [vx, vy, vz, wx, wy, wz] blocks.
| worldHandle | the native world handle |
| outVelocity6 | the destination array sized for N*6 entries |
|
static |
Native: get gamepiece linear velocity.
| worldHandle | the native world handle |
| gamepieceIndex | the native gamepiece index |
| outVxyzMps | output array of length 3 receiving vx,vy,vz in m/s |
|
static |
Native: get gamepiece position.
| worldHandle | the native world handle |
| gamepieceIndex | the native gamepiece index |
| outXyzMeters | output array of length 3 receiving x,y,z in meters |
|
static |
Reads the registered type name for a gamepiece.
| worldHandle | native world handle |
| gamepieceIndex | native gamepiece index |
|
static |
Initializes the native driver.
|
static |
Launches (outtakes) a gamepiece with the specified position and velocity.
| worldHandle | the native world handle |
| gamepieceIndex | the native gamepiece index |
| px | launch position x in meters |
| py | launch position y in meters |
| pz | launch position z in meters |
| vx | launch velocity x in m/s |
| vy | launch velocity y in m/s |
| vz | launch velocity z in m/s |
|
static |
Attempts to pick up a gamepiece into a carrier location.
| worldHandle | the native world handle |
| gamepieceIndex | the native gamepiece index |
| intakeX | world-space intake x coordinate |
| intakeY | world-space intake y coordinate |
| intakeZ | world-space intake z coordinate |
| captureRadius | capture radius in meters |
| carryOffsetX | carry offset x in meters |
| carryOffsetY | carry offset y in meters |
| carryOffsetZ | carry offset z in meters |
|
static |
Places a gamepiece at the given world position and marks it grounded.
| worldHandle | the native world handle |
| gamepieceIndex | the native gamepiece index |
| xMeters | x position in meters |
| yMeters | y position in meters |
| zMeters | z position in meters |
|
static |
Assigns box aerodynamic geometry to a body (useful for robot CAD components).
| worldHandle | the native world handle |
| bodyIndex | the native body index |
| xMeters | box x dimension in meters |
| yMeters | box y dimension in meters |
| zMeters | box z dimension in meters |
| dragCoefficient | drag coefficient (dimensionless) |
|
static |
Assigns sphere aerodynamic geometry to a body (useful for game pieces from CAD).
| worldHandle | the native world handle |
| bodyIndex | the native body index |
| radiusMeters | sphere radius in meters |
| dragCoefficient | drag coefficient (dimensionless) |
|
static |
Sets collision layer and mask filters for this body.
| worldHandle | the native world handle |
| bodyIndex | the native body index |
| collisionLayerBits | body layer bitmask |
| collisionMaskBits | body mask bitmask |
|
static |
Enables or disables gravity for a body.
| worldHandle | the native world handle |
| bodyIndex | the native body index |
| enabled | true to enable gravity, false to disable it |
|
static |
Sets a body's linear velocity in meters per second.
| worldHandle | the native world handle |
| bodyIndex | the native body index |
| vxMps | the x velocity in meters per second |
| vyMps | the y velocity in meters per second |
| vzMps | the z velocity in meters per second |
|
static |
Sets per-body material contact properties.
| worldHandle | the native world handle |
| bodyIndex | the native body index |
| restitution | coefficient of restitution [0, 1] |
| frictionKinetic | kinetic friction coefficient |
| frictionStatic | static friction coefficient |
| collisionDamping | damping coefficient [0, 1] |
|
static |
Sets numeric material identifier used by world material-interaction tables.
| worldHandle | the native world handle |
| bodyIndex | the native body index |
| materialId | numeric material id |
|
static |
Sets a body's world-space orientation as a quaternion.
| worldHandle | the native world handle |
| bodyIndex | the native body index |
| qw | quaternion w component |
| qx | quaternion x component |
| qy | quaternion y component |
| qz | quaternion z component |
|
static |
Sets a body's position in meters.
| worldHandle | the native world handle |
| bodyIndex | the native body index |
| xMeters | the x position in meters |
| yMeters | the y position in meters |
| zMeters | the z position in meters |
|
static |
Native: set gamepiece linear velocity.
| worldHandle | the native world handle |
| gamepieceIndex | the native gamepiece index |
| vxMps | x velocity in meters per second |
| vyMps | y velocity in meters per second |
| vzMps | z velocity in meters per second |
|
static |
Native: set gamepiece position.
| worldHandle | the native world handle |
| gamepieceIndex | the native gamepiece index |
| xMeters | x position in meters |
| yMeters | y position in meters |
| zMeters | z position in meters |
|
static |
Sets per-material-pair contact interaction overrides.
| worldHandle | the native world handle |
| materialAId | first material id |
| materialBId | second material id |
| restitution | override restitution [0, 1] |
| friction | override kinetic friction coefficient |
| enabled | true to enable this pair override |
|
static |
Configures world-level aerodynamics parameters.
| worldHandle | the native world handle |
| enabled | true to enable aerodynamics |
| airDensityKgPm3 | air density in kg/m^3 |
| linearDragNPerMps | linear drag coefficient in N/(m/s) |
| magnusCoefficient | Magnus coefficient |
| defaultDragCoefficient | default drag coefficient |
| defaultReferenceAreaM2 | default drag reference area in m^2 |
|
static |
Sets the world's gravity vector in meters per second squared.
| worldHandle | the native world handle |
| gxMps2 | the x gravity component in meters per second squared |
| gyMps2 | the y gravity component in meters per second squared |
| gzMps2 | the z gravity component in meters per second squared |
|
static |
Advances the world by the given number of steps.
| worldHandle | the native world handle |
| steps | the number of steps to advance |