1
0
mirror of https://github.com/xiaopeng12138/MaiDXR.git synced 2024-11-24 03:50:10 +01:00

add 3rd person camera grabbing

This commit is contained in:
xpeng 2022-08-17 01:29:32 +02:00
parent 48708adbf4
commit d804584bc6

View File

@ -1433,14 +1433,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 357334431}
m_LocalRotation: {x: 0.28006452, y: 0.40193385, z: -0.13059622, w: 0.86195}
m_LocalPosition: {x: -1.137, y: 1.998, z: 0.2993}
m_LocalScale: {x: 1, y: 1, z: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 10, y: 10, z: 10}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1585482469}
m_Father: {fileID: 0}
m_RootOrder: 2
m_Children: []
m_Father: {fileID: 1585482469}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 36, y: 50, z: 0}
--- !u!114 &357334436
MonoBehaviour:
@ -1778,7 +1777,7 @@ MonoBehaviour:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0.005
m_FloatArgument: -0.005
m_StringArgument:
m_BoolArgument: 0
m_CallState: 1
@ -3065,7 +3064,7 @@ MonoBehaviour:
m_PlayAudioClipOnHoverCanceled: 0
m_AudioClipForOnHoverCanceled: {fileID: 0}
m_PlayHapticsOnSelectEntered: 1
m_HapticSelectEnterIntensity: 0.25
m_HapticSelectEnterIntensity: 0.5
m_HapticSelectEnterDuration: 0.1
m_PlayHapticsOnSelectExited: 0
m_HapticSelectExitIntensity: 0
@ -3074,7 +3073,7 @@ MonoBehaviour:
m_HapticSelectCancelIntensity: 0
m_HapticSelectCancelDuration: 0
m_PlayHapticsOnHoverEntered: 1
m_HapticHoverEnterIntensity: 0.25
m_HapticHoverEnterIntensity: 0.5
m_HapticHoverEnterDuration: 0.1
m_PlayHapticsOnHoverExited: 0
m_HapticHoverExitIntensity: 0
@ -3107,7 +3106,7 @@ MonoBehaviour:
m_HoverTimeToSelect: 0.5
m_EnableUIInteraction: 1
m_AllowAnchorControl: 1
m_UseForceGrab: 1
m_UseForceGrab: 0
m_RotateSpeed: 180
m_TranslateSpeed: 1
m_AnchorRotateReferenceFrame: {fileID: 0}
@ -10783,7 +10782,7 @@ MonoBehaviour:
m_PlayAudioClipOnHoverCanceled: 0
m_AudioClipForOnHoverCanceled: {fileID: 0}
m_PlayHapticsOnSelectEntered: 1
m_HapticSelectEnterIntensity: 0.25
m_HapticSelectEnterIntensity: 0.5
m_HapticSelectEnterDuration: 0.1
m_PlayHapticsOnSelectExited: 0
m_HapticSelectExitIntensity: 0
@ -10792,7 +10791,7 @@ MonoBehaviour:
m_HapticSelectCancelIntensity: 0
m_HapticSelectCancelDuration: 0
m_PlayHapticsOnHoverEntered: 1
m_HapticHoverEnterIntensity: 0.25
m_HapticHoverEnterIntensity: 0.5
m_HapticHoverEnterDuration: 0.1
m_PlayHapticsOnHoverExited: 0
m_HapticHoverExitIntensity: 0
@ -10825,7 +10824,7 @@ MonoBehaviour:
m_HoverTimeToSelect: 0.5
m_EnableUIInteraction: 1
m_AllowAnchorControl: 1
m_UseForceGrab: 1
m_UseForceGrab: 0
m_RotateSpeed: 180
m_TranslateSpeed: 1
m_AnchorRotateReferenceFrame: {fileID: 0}
@ -11401,6 +11400,9 @@ GameObject:
- component: {fileID: 1585482469}
- component: {fileID: 1585482471}
- component: {fileID: 1585482470}
- component: {fileID: 1585482474}
- component: {fileID: 1585482473}
- component: {fileID: 1585482472}
m_Layer: 6
m_Name: 3rdPersonCameraCube
m_TagString: Untagged
@ -11415,13 +11417,14 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1585482468}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.1, y: 0.1, z: 0.1}
m_LocalRotation: {x: 0.28006452, y: 0.40193385, z: -0.13059622, w: 0.86195}
m_LocalPosition: {x: -1.137, y: 1.998, z: 0.2993}
m_LocalScale: {x: 0.1, y: 0.1, z: 0.10000001}
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 357334435}
m_RootOrder: 0
m_Children:
- {fileID: 357334435}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &1585482470
MeshRenderer:
@ -11473,6 +11476,155 @@ MeshFilter:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1585482468}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!114 &1585482472
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1585482468}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0ad34abafad169848a38072baa96cdb2, type: 3}
m_Name:
m_EditorClassIdentifier:
m_InteractionManager: {fileID: 1241561950}
m_Colliders: []
m_InteractionLayerMask:
serializedVersion: 2
m_Bits: 4294967295
m_InteractionLayers:
m_Bits: 1
m_DistanceCalculationMode: 1
m_SelectMode: 0
m_CustomReticle: {fileID: 0}
m_FirstHoverEntered:
m_PersistentCalls:
m_Calls: []
m_LastHoverExited:
m_PersistentCalls:
m_Calls: []
m_HoverEntered:
m_PersistentCalls:
m_Calls: []
m_HoverExited:
m_PersistentCalls:
m_Calls: []
m_FirstSelectEntered:
m_PersistentCalls:
m_Calls: []
m_LastSelectExited:
m_PersistentCalls:
m_Calls: []
m_SelectEntered:
m_PersistentCalls:
m_Calls: []
m_SelectExited:
m_PersistentCalls:
m_Calls: []
m_Activated:
m_PersistentCalls:
m_Calls: []
m_Deactivated:
m_PersistentCalls:
m_Calls: []
m_OnFirstHoverEntered:
m_PersistentCalls:
m_Calls: []
m_OnLastHoverExited:
m_PersistentCalls:
m_Calls: []
m_OnHoverEntered:
m_PersistentCalls:
m_Calls: []
m_OnHoverExited:
m_PersistentCalls:
m_Calls: []
m_OnSelectEntered:
m_PersistentCalls:
m_Calls: []
m_OnSelectExited:
m_PersistentCalls:
m_Calls: []
m_OnSelectCanceled:
m_PersistentCalls:
m_Calls: []
m_OnActivate:
m_PersistentCalls:
m_Calls: []
m_OnDeactivate:
m_PersistentCalls:
m_Calls: []
m_AttachTransform: {fileID: 0}
m_UseDynamicAttach: 1
m_MatchAttachPosition: 1
m_MatchAttachRotation: 1
m_SnapToColliderVolume: 1
m_AttachEaseInTime: 0.15
m_MovementType: 2
m_VelocityDamping: 1
m_VelocityScale: 1
m_AngularVelocityDamping: 1
m_AngularVelocityScale: 1
m_TrackPosition: 1
m_SmoothPosition: 0
m_SmoothPositionAmount: 5
m_TightenPosition: 0.5
m_TrackRotation: 1
m_SmoothRotation: 0
m_SmoothRotationAmount: 5
m_TightenRotation: 0.5
m_ThrowOnDetach: 1
m_ThrowSmoothingDuration: 0.25
m_ThrowSmoothingCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 1
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_ThrowVelocityScale: 1.5
m_ThrowAngularVelocityScale: 1
m_ForceGravityOnDetach: 0
m_RetainTransformParent: 1
m_AttachPointCompatibilityMode: 0
--- !u!54 &1585482473
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1585482468}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!65 &1585482474
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1585482468}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1.0000002, y: 1, z: 1}
m_Center: {x: 0, y: -0.0000009536743, z: 0}
--- !u!1 &1612026918 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 5048151436394606877, guid: 4cbf0dbca1ca1a5499c4b7806ab6aac5,