mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: spaced armor finish
This commit is contained in:
1 parent
080af86e1b
commit
fabf649608
11 files changed
+124
-78
No files matched your search
-12
@@ -3,7 +3,6 @@ import { Euler, Group, Vector3 } from 'three';
|
||||
import { degToRad } from 'three/src/math/MathUtils';
|
||||
import { SpacedArmor } from '../../../../../../../../../components/Armor/components/SpacedArmor';
|
||||
import { I_HAT, J_HAT, K_HAT } from '../../../../../../../../../constants/axis';
|
||||
import { resolveNearPenetration } from '../../../../../../../../../core/blitz/resolveNearPenetration';
|
||||
import {
|
||||
ModelTransformEventData,
|
||||
modelTransformEvent,
|
||||
@@ -150,17 +149,6 @@ export const SpacedArmorScene = memo<SpacedArmorSceneProps>(
|
||||
-turretModelDefinition.gunOrigin[2],
|
||||
).applyAxisAngle(I_HAT, Math.PI / 2);
|
||||
|
||||
console.log(
|
||||
'test',
|
||||
gunModelDefinition.thickness,
|
||||
resolveNearPenetration(useDuel.getState().antagonist!.shell.penetration),
|
||||
(gunModelDefinition.thickness /
|
||||
resolveNearPenetration(
|
||||
useDuel.getState().antagonist!.shell.penetration,
|
||||
)) *
|
||||
255,
|
||||
);
|
||||
|
||||
return (
|
||||
<group
|
||||
ref={wrapper}
|
||||
|
||||
Reference in new issue
Block a user