hytopia 0.1.80 → 0.1.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@ import {
2
2
  startServer,
3
3
  Entity,
4
4
  PlayerEntity,
5
+ Quaternion,
5
6
  } from 'hytopia';
6
7
 
7
8
  import worldMap from './assets/map.json';
@@ -32,7 +33,7 @@ startServer(world => {
32
33
  swordChildEntity.spawn(
33
34
  world,
34
35
  { x: 0, y: 0.3, z: 0.5 }, // spawn with a position relative to the parent node
35
- { x: -Math.PI / 3, y: 0, z: 0, w: 1 } // spawn with a rotation so it looks correct in the hand
36
+ Quaternion.fromEuler(-90, 0, 90), // spawn with a rotation so it looks correct in the hand
36
37
  );
37
38
  };
38
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.1.80",
3
+ "version": "0.1.81",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "main": "server.js",
6
6
  "bin": {