-
Notifications
You must be signed in to change notification settings - Fork 10
Add Vehicle Track API bindings for tracked vehicles #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
vrecluse
wants to merge
148
commits into
SecondHalfGames:main
from
vrecluse:feature/vehicle-track-api
Closed
Add Vehicle Track API bindings for tracked vehicles #22
vrecluse
wants to merge
148
commits into
SecondHalfGames:main
from
vrecluse:feature/vehicle-track-api
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…dy and BodyInterface for water simuation, and Character support (WIP)
Add EmptyShape support.
…creation in general.
…, remove _SetProcs and use callbacks in Create methods.
… better naming (AsBody, ToBody)
* Add support for per-triangle user data in MeshShape; * JPH_Shape_GetLeafShape;
…dd ShapeFilter support, improvements in NarrowPhaseQuery
…BodyLockWrite (#55)
…make them column major (as Jolt)
…nd JPH_BodyLockInterface_LockMultiWrite, fixes #60
* Added JPH_LinearCurve def and functions * Added WheelSettingsWV lateral and long friction funcs * Clean-up * Added asserts * Clean-up * Added JPH_LinearCurve_GetPoints * Remove designated initializers
* Added JPH_VehicleEngine and JPH_VehicleTransmission * Added normalizedTorque to JPH_VehicleEngineSettings
This adds the missing VehicleTrack and VehicleTrackSettings API that was marked as TODO in the codebase. The API allows accessing track runtime state for tracked vehicles. ## Added API: ### Types: - `JPH_VehicleTrackSettings` - Configuration for a vehicle track - `JPH_VehicleTrack` - Runtime track state - `JPH_TrackSide` - Enum for left/right track side ### Functions: - `JPH_VehicleTrackSettings_Init()` - Initialize settings with defaults - `JPH_VehicleTrack_GetAngularVelocity()` - Get track angular velocity - `JPH_VehicleTrack_SetAngularVelocity()` - Set track angular velocity - `JPH_VehicleTrack_GetDrivenWheel()` - Get driven wheel index - `JPH_VehicleTrack_GetInertia()` - Get track inertia - `JPH_VehicleTrack_GetAngularDamping()` - Get angular damping - `JPH_VehicleTrack_GetMaxBrakeTorque()` - Get max brake torque - `JPH_VehicleTrack_GetDifferentialRatio()` - Get differential ratio - `JPH_TrackedVehicleController_GetTrack()` - Get track by side Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
3289e5a to
a9e90dd
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add complete C bindings for Jolt Physics tracked vehicle system:
Also updates JPC_BodyManager_DrawSettings for Jolt Physics v5.5.0 compatibility (adds mDrawSoftBodyRods, mDrawSoftBodyRodStates, mDrawSoftBodyRodBendTwistConstraints fields).
Fixes protected constructor issue in JPC_ConstraintSettings_default for v5.5.0 compatibility.
Generated with Claude Code via Happy