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
|
-
|
36
|
+
Quaternion.fromEuler(-90, 0, 90), // spawn with a rotation so it looks correct in the hand
|
36
37
|
);
|
37
38
|
};
|
38
39
|
|