Skip to content

feat: add lookAtEntity field to Billboard component#1376

Open
decentraland-bot wants to merge 1 commit into
mainfrom
feat/billboard-look-at-entity
Open

feat: add lookAtEntity field to Billboard component#1376
decentraland-bot wants to merge 1 commit into
mainfrom
feat/billboard-look-at-entity

Conversation

@decentraland-bot

Copy link
Copy Markdown
Contributor

Summary

  • Adds the new lookAtEntity field to the PBBillboard TypeScript interface
  • Updates Billboard.spec.ts with serialization tests for the new field
  • Updates the playground-assets API surface to expose the new field
  • Updates the production bundle snapshot to demonstrate lookAtEntity usage

Background

The Billboard component is getting a new optional look_at_entity field (added in the protocol repo). When set, the Billboard rotates to always face the world-space position of the specified entity's Transform instead of the camera. When not set, existing camera-facing behavior is preserved.

Changes

packages/@dcl/playground-assets/etc/playground-assets.api.md  — add lookAtEntity to PBBillboard interface
test/ecs/components/Billboard.spec.ts                          — add serialization tests for lookAtEntity
test/snapshots/production-bundles/billboard.ts                 — add look_at_entity usage example

Note: The generated TypeScript code in src/components/generated/ is produced at build time from @dcl/protocol. The @dcl/protocol dependency version bump will be applied once the protocol PR (decentraland/protocol#389) is merged and published.

Related PRs


🤖 Created via Slack with Claude
Requested by Nico Earnshaw via Slack

The new optional field allows a Billboard to face a specific entity's
Transform position instead of the camera. Defaults to camera behavior
when not set, matching the existing default.

Depends on decentraland/protocol update adding look_at_entity to PBBillboard.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying js-sdk-toolchain with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5c5e7e8
Status: ✅  Deploy successful!
Preview URL: https://f0f57d97.js-sdk-toolchain.pages.dev
Branch Preview URL: https://feat-billboard-look-at-entit.js-sdk-toolchain.pages.dev

View logs

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