Skip to content

Prototype curved world-worker movement - #22

Draft
SimGamerJen wants to merge 2 commits into
agent/world-workers-alpha4-locomotion-prototypefrom
agent/world-workers-alpha4-curved-movement
Draft

Prototype curved world-worker movement#22
SimGamerJen wants to merge 2 commits into
agent/world-workers-alpha4-locomotion-prototypefrom
agent/world-workers-alpha4-curved-movement

Conversation

@SimGamerJen

Copy link
Copy Markdown
Owner

Summary

Builds directly on the validated straight-walk locomotion prototype and adds one controlled curved-heading experiment.

Command

  • hpWorld curve [slot] [forwardMetres] [rightMetres]
  • Example: hpWorld curve A 5 3
  • Negative rightMetres turns left.

Behaviour

  • uses the same HumanGraphicsComponentState / applyState() locomotion foundation that passed the straight-walk test
  • keeps a forward walking gait (movementDirX=0, movementDirZ=1)
  • keeps rotationVelocity=0, matching the movement telemetry captured from the real player graphics state
  • continuously blends model yaw toward a fixed offset target
  • limits yaw change to 1.0 rad/s, close to the PlayerMover turn velocity observed during the probe
  • advances position along the worker's changing heading to produce an actual curved path rather than a diagonal slide
  • retains the straight prototype's acceleration, braking, terrain-height following, stop handling and persistence

Test focus

  1. Confirm [WorldLocomotion] Loaded ... curved-movement-1 appears.
  2. Place A outdoors on open ground.
  3. Run hpWorld curve A 5 3 and observe a smooth right-hand curve.
  4. Run hpWorld curve A 5 -3 and observe a smooth left-hand curve.
  5. Check specifically for jitter, foot sliding, abrupt yaw snaps, or loss of the walking gait.
  6. Confirm the worker stops naturally and remains at the new persisted position.

No obstacle avoidance or pathfinding is included yet. This PR exists only to prove that heading changes can coexist with the now-validated walking pipeline.

Copy link
Copy Markdown
Owner Author

Mechanical test result from 2026-08-08: both hpWorld curve A 5 3 and hpWorld curve A 5 -3 completed cleanly with curve-target-reached; no locomotion errors were logged. Right turn: yaw 2.421 -> 2.975, elapsed 4.47 s. Left turn: yaw 2.975 -> 2.421, elapsed 4.49 s. In both cases the bounded 1.0 rad/s turn converged to the desired heading within roughly the first 0.5 s, after which the worker proceeded essentially straight to the target. Mechanical status: PASS. Visual status still pending user confirmation for gait continuity, jitter, sideways skating, and yaw smoothness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant