mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +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 { degToRad } from 'three/src/math/MathUtils.js';
|
||||
|
||||
export interface DissectEventData {
|
||||
rotation: number;
|
||||
@@ -8,8 +9,8 @@ export interface DissectEventData {
|
||||
export const dissectEvent = new EventManager<DissectEventData>();
|
||||
|
||||
export const lastDissection: DissectEventData = {
|
||||
rotation: Math.PI / 2,
|
||||
offset: 0,
|
||||
rotation: degToRad(100),
|
||||
offset: 0.8,
|
||||
};
|
||||
|
||||
dissectEvent.on((data) => Object.assign(lastDissection, data));
|
||||
Reference in new issue
Block a user