Initial commit

This commit is contained in:
HussienX72u
2026-07-21 08:56:10 +03:00
commit 4017028111
9410 changed files with 2150500 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
@startuml
class CameraControl {
- inputProvider : BaseInputProvider
+ pivotPoint : Transform
+ obstacleLayer : LayerMask
+ panSpeed : float = 0.5f
+ rotateSpeed : float = 5.0f
+ zoomSpeed : float = 5.0f
+ minZoom : float = 2.0f
+ maxZoom : float = 50.0f
+ enableSmoothing : bool = true
+ smoothTime : float = 0.1f
- _targetPosition : Vector3
- _targetRotation : Quaternion
- _targetZoom : float
- _currentVelocity : Vector3
- _isPanning : bool
- _isOrbiting : bool
- _cursorScreenPos : Vector2
- _cam : Camera
+ isInputLocked : bool = false
- isInitialized : bool = false
- Start() : void
- OnEnable() : void
- OnDisable() : void
- LateUpdate() : void
- OnCursorMoved(screenPos:Vector2) : void
- OnPanStart(cursorScreenPos:Vector2) : void
- OnPanEnd() : void
- OnRotateStart() : void
- OnRotateEnd() : void
- OnCursorDelta(delta:Vector2) : void
- OnZoom(scrollValue:float) : void
- ApplyMovement() : void
+ SnapToDirection(direction:Vector3) : void
- OnDrawGizmos() : void
}
MonoBehaviour <|-- CameraControl
@enduml
+21
View File
@@ -0,0 +1,21 @@
@startuml
class ViewCubeController {
+ mainCam : Camera
+ viewCubeCam : Camera
- CameraController : CameraControl
+ viewCubeImage : RawImage
- eventTrigger : EventTrigger
- isPointerInViewCube : bool = false
- cubeContainer : Transform
+ viewCubeLayer : LayerMask
- rawImageRect : RectTransform
- debugRay : Ray
- Start() : void
- Update() : void
- RotateCube() : void
- CalculateCurrentRay() : void
- DetectClick() : void
- OnDrawGizmos() : void
}
MonoBehaviour <|-- ViewCubeController
@enduml