Skip to content

add WalkPlayerTo RPC and walk fields to movement components#374

Merged
robtfm merged 1 commit intoprotocol-squadfrom
feat/walk-player-to
Mar 10, 2026
Merged

add WalkPlayerTo RPC and walk fields to movement components#374
robtfm merged 1 commit intoprotocol-squadfrom
feat/walk-player-to

Conversation

@robtfm
Copy link
Contributor

@robtfm robtfm commented Mar 10, 2026

Summary

  • Add WalkPlayerTo RPC to RestrictedActionsService with position, stop_threshold, and optional timeout
  • Add walk_target (Vector3) and walk_threshold (float) fields to PBAvatarMovementInfo (engine → scene broadcast each frame while walk is active)
  • Add walk_success (optional bool) to PBAvatarMovement (scene → engine, set for one frame on completion/failure)

The walk flow: scene calls walkPlayerTo → engine sets walk_target/walk_threshold in AvatarMovementInfo each frame → movement scene steers the avatar toward the target → on arrival (or timeout/cancellation) the scene writes walk_success back → engine resolves the RPC call.

🤖 Generated with Claude Code

- Add WalkPlayerTo RPC to RestrictedActionsService with position, stop_threshold and optional timeout
- Add walk_target and walk_threshold fields to PBAvatarMovementInfo (engine -> scene)
- Add walk_success optional bool to PBAvatarMovement (scene -> engine, set for one frame on completion)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link

Test this pull request

  • The @dcl/protocol package can be tested in scenes by running
    npm install "https://sdk-team-cdn.decentraland.org/@dcl/protocol/branch//dcl-protocol-1.0.0-22900906704.commit-104038a.tgz"

@robtfm robtfm merged commit 14f756d into protocol-squad Mar 10, 2026
2 of 3 checks passed
@robtfm robtfm deleted the feat/walk-player-to branch March 10, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants