Skip to content

Scaling DefaultPlayerEntity Above 0.58 Breaks Walking Animation [BUG] #27

@hdriviere

Description

@hdriviere

What were you trying to do, what did you expect to happen?
I was trying to change the scale of the DefaultPlayerEntity to a value above 0.58. I expected the player model to animate as usual, including triggering the walking animation when the player moves.

What actually happened?
When the scale of the DefaultPlayerEntity is set above 0.58, the walking animation is not triggered. The player moves, but the model remains static and does not play the walking animation.

To Reproduce

  • HYTOPIA SDK version: 0.5.2
  • Code snippet to reproduce:
world.on(PlayerEvent.JOINED_WORLD, ({ player }) => {
    const playerEntity = new DefaultPlayerEntity({
      player,
      name: 'Player',
      modelScale: 0.59,
    });

Additional context
This issue only occurs when the scale is set above 0.58. At or below 0.58, the walking animation works as expected.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions