mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: better starting angle
This commit is contained in:
1 parent
80325aa3b2
commit
da4c2ece32
1 file changed
+3
-2
@@ -1,4 +1,5 @@
|
|||||||
import { EventManager } from '@blitzkit/core';
|
import { EventManager } from '@blitzkit/core';
|
||||||
|
import { degToRad } from 'three/src/math/MathUtils.js';
|
||||||
|
|
||||||
export interface DissectEventData {
|
export interface DissectEventData {
|
||||||
rotation: number;
|
rotation: number;
|
||||||
@@ -8,8 +9,8 @@ export interface DissectEventData {
|
|||||||
export const dissectEvent = new EventManager<DissectEventData>();
|
export const dissectEvent = new EventManager<DissectEventData>();
|
||||||
|
|
||||||
export const lastDissection: DissectEventData = {
|
export const lastDissection: DissectEventData = {
|
||||||
rotation: Math.PI / 2,
|
rotation: degToRad(100),
|
||||||
offset: 0,
|
offset: 0.8,
|
||||||
};
|
};
|
||||||
|
|
||||||
dissectEvent.on((data) => Object.assign(lastDissection, data));
|
dissectEvent.on((data) => Object.assign(lastDissection, data));
|
||||||
Reference in new issue
Block a user