Skip to content
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

AvatarShape components issue with Avatar position #1051

Closed
decentraland-bot opened this issue Dec 1, 2023 · 4 comments · Fixed by decentraland/unity-renderer#6015
Closed
Assignees
Labels
bug Something isn't working ReportBot
Milestone

Comments

@decentraland-bot
Copy link

Severity:

SEV-4 | Minor issue

Description:

Using AvatarShape components in sdk7 sets the initial position properly, but if you go outside the view of the scene and come back, the npc avatar is rendered on the ground and not back in its original position.

Operating system:

NA

if SDK, CLI Version:

Latest SDk

If SDK, Node version:

NA

Local or deployed:

Both local and in production

Code snippet:

import * as npc from 'dcl-npc-toolkit' import { InputAction, MeshCollider, MeshRenderer, Transform, engine, pointerEventsSystem } from '@dcl/sdk/ecs' import { Vector3 } from '@dcl/sdk/math' export * from '@dcl/sdk' export function main(){ let ent = npc.create({position: Vector3.create(8,5,8)},{ type: npc.NPCType.AVATAR, onActivate:()=>{} }) let box = engine.addEntity() MeshRenderer.setBox(box) MeshCollider.setBox(box) Transform.create(box, {position: Vector3.create(4,1,8)}) pointerEventsSystem.onPointerDown({ entity:box, opts:{hoverText: "Delete", button: InputAction.IA_POINTER} }, ()=>{ engine.removeEntity(ent) }) }

Steps to reproduce:

Check the snippet/video below:

Ticket number:

@decentraland-bot decentraland-bot added bug Something isn't working ReportBot labels Dec 1, 2023
@decentraland-bot
Copy link
Author

From Stoyan:

@Kaze-No-Kai Kaze-No-Kai changed the title AvatarShape components sets the AvatarShape components issue with Avatar position Dec 1, 2023
@decentraland-bot
Copy link
Author

From Stoyan:
SDK version - 7.3.28

@pravusjif
Copy link
Member

Tackled at decentraland/unity-renderer#6015

@pravusjif pravusjif moved this from In Progress to QA in SDK Dec 12, 2023
@pravusjif pravusjif added this to the Workspace milestone Dec 12, 2023
@Kaze-No-Kai
Copy link

Fixed, closing

@github-project-automation github-project-automation bot moved this from QA to Done in SDK Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ReportBot
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants