52 коммита в очке
This commit is contained in:
parent
347a54fbbb
commit
c4034680dd
8
Unity3_lab/Assets/Material/Materials.meta
Normal file
8
Unity3_lab/Assets/Material/Materials.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5b0d7419a813c67ca8ca353a0ec5b3ff
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
137
Unity3_lab/Assets/Material/Materials/hammer_texture.mat
Normal file
137
Unity3_lab/Assets/Material/Materials/hammer_texture.mat
Normal file
@ -0,0 +1,137 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &-649635949939739892
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 11
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
|
||||||
|
version: 10
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: hammer_texture
|
||||||
|
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Opaque
|
||||||
|
disabledShaderPasses:
|
||||||
|
- MOTIONVECTORS
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BaseMap:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 0cb43f23fd53c1198a66b3ffe4a70f82, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 0cb43f23fd53c1198a66b3ffe4a70f82, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _SpecGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- unity_Lightmaps:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- unity_LightmapsInd:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- unity_ShadowMasks:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _AddPrecomputedVelocity: 0
|
||||||
|
- _AlphaClip: 0
|
||||||
|
- _AlphaToMask: 0
|
||||||
|
- _Blend: 0
|
||||||
|
- _BlendModePreserveSpecular: 1
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _ClearCoatMask: 0
|
||||||
|
- _ClearCoatSmoothness: 0
|
||||||
|
- _Cull: 2
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailAlbedoMapScale: 1
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _DstBlendAlpha: 0
|
||||||
|
- _EnvironmentReflections: 1
|
||||||
|
- _GlossMapScale: 0
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 0
|
||||||
|
- _Metallic: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.005
|
||||||
|
- _QueueOffset: 0
|
||||||
|
- _ReceiveShadows: 1
|
||||||
|
- _Smoothness: 0.5
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _SrcBlendAlpha: 1
|
||||||
|
- _Surface: 0
|
||||||
|
- _WorkflowMode: 1
|
||||||
|
- _XRMotionVectorsPass: 1
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
m_AllowLocking: 1
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6f33aa9c30946edffb053bf56c6cb2ed
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Unity3_lab/Assets/Material/hammer_texture.png
Normal file
BIN
Unity3_lab/Assets/Material/hammer_texture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
130
Unity3_lab/Assets/Material/hammer_texture.png.meta
Normal file
130
Unity3_lab/Assets/Material/hammer_texture.png.meta
Normal file
@ -0,0 +1,130 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0cb43f23fd53c1198a66b3ffe4a70f82
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
8
Unity3_lab/Assets/Models.meta
Normal file
8
Unity3_lab/Assets/Models.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f4431340b88607b7aabe02c2cf9ed623
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Unity3_lab/Assets/Models/child_hammer.fbx
Normal file
BIN
Unity3_lab/Assets/Models/child_hammer.fbx
Normal file
Binary file not shown.
110
Unity3_lab/Assets/Models/child_hammer.fbx.meta
Normal file
110
Unity3_lab/Assets/Models/child_hammer.fbx.meta
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bebb0d169dea5c0968d2b92f3a780eb9
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 24200
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 0
|
||||||
|
materialSearch: 1
|
||||||
|
materialLocation: 1
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 0
|
||||||
|
motionNodeName:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 0
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
importPhysicalCameras: 1
|
||||||
|
importVisibility: 1
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 1
|
||||||
|
importLights: 1
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 0
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
generateMeshLods: 0
|
||||||
|
meshLodGenerationFlags: 0
|
||||||
|
maximumMeshLod: -1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
strictVertexDataChecks: 0
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 1
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 2
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
importBlendShapeDeformPercent: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
160
Unity3_lab/Assets/Prefabs/Hammer.prefab
Normal file
160
Unity3_lab/Assets/Prefabs/Hammer.prefab
Normal file
@ -0,0 +1,160 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &7833551291118500816
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3764131218758542172}
|
||||||
|
- component: {fileID: 2885828302970326631}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Hammer
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &3764131218758542172
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7833551291118500816}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: -0.4557779, z: 0, w: 0.89009356}
|
||||||
|
m_LocalPosition: {x: -89.65, y: 13.5, z: -19.44}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 3991647491435671205}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: -54.23, z: 0}
|
||||||
|
--- !u!114 &2885828302970326631
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7833551291118500816}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 0d954fba39d94b60caaf7e5be5a81c55, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::SwingHammer
|
||||||
|
maxAngle: 45
|
||||||
|
speed: 1.5
|
||||||
|
phaseOffset: 0
|
||||||
|
--- !u!1001 &9059708316691783443
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 3764131218758542172}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 2784884316285539480, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_ProvidesContacts
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3846165157962526307, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_Size.x
|
||||||
|
value: 2.2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3846165157962526307, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_Size.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3846165157962526307, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_Size.z
|
||||||
|
value: 2.2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3846165157962526307, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_ProvidesContacts
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4722515086214713984, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: bounceForce
|
||||||
|
value: 1500
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4725527410114210572, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: child_hammer
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5395209584057708982, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5395209584057708982, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: -11.66
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5395209584057708982, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5395209584057708982, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5395209584057708982, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5395209584057708982, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5395209584057708982, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5395209584057708982, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: -90
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5395209584057708982, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 90
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5395209584057708982, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5442124555033820892, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_ProvidesContacts
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5714711861561221306, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: bounceForce
|
||||||
|
value: 1500
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7112921340284640406, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_Size.x
|
||||||
|
value: 2.2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7112921340284640406, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_Size.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7112921340284640406, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_Size.z
|
||||||
|
value: 2.2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7112921340284640406, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
propertyPath: m_ProvidesContacts
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
--- !u!4 &3991647491435671205 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 5395209584057708982, guid: 7bde0eef0da1607b5bc4e020a11a92ce, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 9059708316691783443}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
7
Unity3_lab/Assets/Prefabs/Hammer.prefab.meta
Normal file
7
Unity3_lab/Assets/Prefabs/Hammer.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 86c4dad71b9297e22a44b6f0c5e31f05
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
295
Unity3_lab/Assets/Prefabs/child_hammer.prefab
Normal file
295
Unity3_lab/Assets/Prefabs/child_hammer.prefab
Normal file
@ -0,0 +1,295 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &2084616781595157425
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4277791519269563210}
|
||||||
|
- component: {fileID: 3846165157962526307}
|
||||||
|
- component: {fileID: 5714711861561221306}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: GameObject (1)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4277791519269563210
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2084616781595157425}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: -0, y: 0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 5395209584057708982}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!65 &3846165157962526307
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2084616781595157425}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 2, y: 0.1, z: 2}
|
||||||
|
m_Center: {x: 0, y: 2.69, z: 0}
|
||||||
|
--- !u!114 &5714711861561221306
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2084616781595157425}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: caf67be9cfc4039749639069dd88be0f, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::TrampolineScript
|
||||||
|
bounceForce: 15
|
||||||
|
--- !u!1 &3342824167669657905
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3025632341908195824}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Hammer_Pivot
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &3025632341908195824
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3342824167669657905}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: -0, y: -1, z: -0, w: 0}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 12.04}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 5395209584057708982}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &7691413274136163423
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1599668993971789578}
|
||||||
|
- component: {fileID: 7112921340284640406}
|
||||||
|
- component: {fileID: 4722515086214713984}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: GameObject
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &1599668993971789578
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7691413274136163423}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: -0, y: 0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 5395209584057708982}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!65 &7112921340284640406
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7691413274136163423}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 2, y: 0.1, z: 2}
|
||||||
|
m_Center: {x: 0, y: -2.65, z: 0}
|
||||||
|
--- !u!114 &4722515086214713984
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7691413274136163423}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: caf67be9cfc4039749639069dd88be0f, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::TrampolineScript
|
||||||
|
bounceForce: 15
|
||||||
|
--- !u!1001 &5572390854703158877
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 9.96
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 180
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -7511558181221131132, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
propertyPath: 'm_Materials.Array.data[0]'
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 2100000, guid: 6f33aa9c30946edffb053bf56c6cb2ed, type: 2}
|
||||||
|
- target: {fileID: 919132149155446097, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: child_hammer
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects:
|
||||||
|
- targetCorrespondingSourceObject: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
insertIndex: -1
|
||||||
|
addedObject: {fileID: 1599668993971789578}
|
||||||
|
- targetCorrespondingSourceObject: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
insertIndex: -1
|
||||||
|
addedObject: {fileID: 4277791519269563210}
|
||||||
|
- targetCorrespondingSourceObject: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
insertIndex: -1
|
||||||
|
addedObject: {fileID: 3025632341908195824}
|
||||||
|
m_AddedComponents:
|
||||||
|
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
insertIndex: -1
|
||||||
|
addedObject: {fileID: 5442124555033820892}
|
||||||
|
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
insertIndex: -1
|
||||||
|
addedObject: {fileID: 2784884316285539480}
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
--- !u!1 &4725527410114210572 stripped
|
||||||
|
GameObject:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 5572390854703158877}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!65 &5442124555033820892
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4725527410114210572}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 2, y: 5, z: 1.95}
|
||||||
|
m_Center: {x: 0, y: 0, z: -0.01}
|
||||||
|
--- !u!65 &2784884316285539480
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4725527410114210572}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 1.9985946, y: 5.2936864, z: 13.435705}
|
||||||
|
m_Center: {x: 0, y: 0, z: 5.4996176}
|
||||||
|
--- !u!4 &5395209584057708982 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: bebb0d169dea5c0968d2b92f3a780eb9, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 5572390854703158877}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
7
Unity3_lab/Assets/Prefabs/child_hammer.prefab.meta
Normal file
7
Unity3_lab/Assets/Prefabs/child_hammer.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7bde0eef0da1607b5bc4e020a11a92ce
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
41
Unity3_lab/Assets/Scripts/SwingHammer.cs
Normal file
41
Unity3_lab/Assets/Scripts/SwingHammer.cs
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class SwingHammer : MonoBehaviour
|
||||||
|
{
|
||||||
|
[Tooltip("Максимальный угол поворота в каждую сторону от центра.")]
|
||||||
|
[SerializeField]
|
||||||
|
private float maxAngle = 45f;
|
||||||
|
|
||||||
|
[Tooltip("Скорость качания (например, 1.5 - чем выше, тем быстрее).")]
|
||||||
|
[SerializeField]
|
||||||
|
private float speed = 1.5f;
|
||||||
|
|
||||||
|
[Header("Настройка начала качания")]
|
||||||
|
[Tooltip("Смещение фазы (в радианах). Позволяет настроить начальный угол качания.")]
|
||||||
|
[SerializeField]
|
||||||
|
private float phaseOffset = 0f; // <--- НОВОЕ ПОЛЕ!
|
||||||
|
|
||||||
|
private Quaternion initialRotation;
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
initialRotation = transform.rotation;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
// 1. Рассчитываем фазу с добавлением смещения.
|
||||||
|
float phase = Time.time * speed + phaseOffset;
|
||||||
|
|
||||||
|
// 2. Рассчитываем угол.
|
||||||
|
float angle = Mathf.Sin(phase) * maxAngle;
|
||||||
|
|
||||||
|
// 3. Применяем вращение
|
||||||
|
|
||||||
|
// Используйте ту ось, которую вы уже нашли (например, Z):
|
||||||
|
Quaternion swingRotation = Quaternion.Euler(0, 0, angle);
|
||||||
|
|
||||||
|
// Применяем вращение от качания к сохраненному начальному вращению.
|
||||||
|
transform.rotation = initialRotation * swingRotation;
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Unity3_lab/Assets/Scripts/SwingHammer.cs.meta
Normal file
2
Unity3_lab/Assets/Scripts/SwingHammer.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0d954fba39d94b60caaf7e5be5a81c55
|
||||||
32
Unity3_lab/Assets/Scripts/TrampolineScript.cs
Normal file
32
Unity3_lab/Assets/Scripts/TrampolineScript.cs
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class TrampolineScript : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
[Tooltip("Сила отскока. Настройте это значение в Инспекторе для каждого трамплина.")]
|
||||||
|
[SerializeField] private float bounceForce = 15f;
|
||||||
|
|
||||||
|
private void OnCollisionEnter(Collision collision)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (collision.gameObject.CompareTag("Player"))
|
||||||
|
{
|
||||||
|
|
||||||
|
Rigidbody playerRigidbody = collision.gameObject.GetComponent<Rigidbody>();
|
||||||
|
if (playerRigidbody == null)
|
||||||
|
{
|
||||||
|
Debug.LogError("Игрок с тегом 'Player' должен иметь компонент Rigidbody для отскока!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector3 normal = collision.contacts[0].normal;
|
||||||
|
|
||||||
|
playerRigidbody.linearVelocity = Vector3.zero;
|
||||||
|
|
||||||
|
|
||||||
|
playerRigidbody.AddForce(normal * bounceForce, ForceMode.Impulse);
|
||||||
|
|
||||||
|
Debug.Log($"Игрок отскочил от трамплина по нормали: {normal.normalized}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Unity3_lab/Assets/Scripts/TrampolineScript.cs.meta
Normal file
2
Unity3_lab/Assets/Scripts/TrampolineScript.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: caf67be9cfc4039749639069dd88be0f
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/03/03871b64c0f57c69032fbbaf20d9eeea
Normal file
BIN
Unity3_lab/Library/Artifacts/03/03871b64c0f57c69032fbbaf20d9eeea
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/07/0777b534fbbefd8479b824b35581cea0
Normal file
BIN
Unity3_lab/Library/Artifacts/07/0777b534fbbefd8479b824b35581cea0
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/07/07caf9cdf90f7a82aade83cab499d456
Normal file
BIN
Unity3_lab/Library/Artifacts/07/07caf9cdf90f7a82aade83cab499d456
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/09/095442edb5818f432ce3f6775bb78163
Normal file
BIN
Unity3_lab/Library/Artifacts/09/095442edb5818f432ce3f6775bb78163
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/0a/0ab5c3e25d8b8c7ca193490e3f1ce9d0
Normal file
BIN
Unity3_lab/Library/Artifacts/0a/0ab5c3e25d8b8c7ca193490e3f1ce9d0
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/0d/0d81ce9ad6d51e519eed4d478b29185b
Normal file
BIN
Unity3_lab/Library/Artifacts/0d/0d81ce9ad6d51e519eed4d478b29185b
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/0e/0e30e20ab0b7d90379defaab011abde8
Normal file
BIN
Unity3_lab/Library/Artifacts/0e/0e30e20ab0b7d90379defaab011abde8
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/0f/0f9c17e39ef07685a779245705c0d31a
Normal file
BIN
Unity3_lab/Library/Artifacts/0f/0f9c17e39ef07685a779245705c0d31a
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/11/114802d7236faef667b0fe86e5ffa570
Normal file
BIN
Unity3_lab/Library/Artifacts/11/114802d7236faef667b0fe86e5ffa570
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/11/117611933b7df71fc054ca074797338b
Normal file
BIN
Unity3_lab/Library/Artifacts/11/117611933b7df71fc054ca074797338b
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/11/118e31fc2db14cc5061399ba3a7441af
Normal file
BIN
Unity3_lab/Library/Artifacts/11/118e31fc2db14cc5061399ba3a7441af
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/18/189f98d0602f90d984ec8e655f8c8d7f
Normal file
BIN
Unity3_lab/Library/Artifacts/18/189f98d0602f90d984ec8e655f8c8d7f
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/1c/1ccacc9c76aa31bdfc5275b88636073d
Normal file
BIN
Unity3_lab/Library/Artifacts/1c/1ccacc9c76aa31bdfc5275b88636073d
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/24/247a344c623a6799e5728948e378e2b9
Normal file
BIN
Unity3_lab/Library/Artifacts/24/247a344c623a6799e5728948e378e2b9
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/24/24f901fe1b1bfcf7ec48a04c02d3570b
Normal file
BIN
Unity3_lab/Library/Artifacts/24/24f901fe1b1bfcf7ec48a04c02d3570b
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/25/25ab8a879a2bd2a2dece01737d2f0e11
Normal file
BIN
Unity3_lab/Library/Artifacts/25/25ab8a879a2bd2a2dece01737d2f0e11
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
BIN
Unity3_lab/Library/Artifacts/28/28e5c650313608d7ae217669fd8afcff
Normal file
BIN
Unity3_lab/Library/Artifacts/28/28e5c650313608d7ae217669fd8afcff
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/2a/2ad42823f51af41eb0e02efda2583fbb
Normal file
BIN
Unity3_lab/Library/Artifacts/2a/2ad42823f51af41eb0e02efda2583fbb
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/2c/2c5087479664effd73f84d607e9fab22
Normal file
BIN
Unity3_lab/Library/Artifacts/2c/2c5087479664effd73f84d607e9fab22
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/2e/2e2f067b830c96b21ac396b4104189a4
Normal file
BIN
Unity3_lab/Library/Artifacts/2e/2e2f067b830c96b21ac396b4104189a4
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/2e/2eada4277057acbba878d09c42d390a0
Normal file
BIN
Unity3_lab/Library/Artifacts/2e/2eada4277057acbba878d09c42d390a0
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/31/31708a9ddbaa94b71521aac09bf00f77
Normal file
BIN
Unity3_lab/Library/Artifacts/31/31708a9ddbaa94b71521aac09bf00f77
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/31/317d87437e3ee0db4a6387c2b9830f0c
Normal file
BIN
Unity3_lab/Library/Artifacts/31/317d87437e3ee0db4a6387c2b9830f0c
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/31/31c24bd1621da8969e16d66b6318b458
Normal file
BIN
Unity3_lab/Library/Artifacts/31/31c24bd1621da8969e16d66b6318b458
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/3a/3a4fb2752db2e1d604bcc34175a254f5
Normal file
BIN
Unity3_lab/Library/Artifacts/3a/3a4fb2752db2e1d604bcc34175a254f5
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/3b/3b4607e1cab32f5a4661190f94c89573
Normal file
BIN
Unity3_lab/Library/Artifacts/3b/3b4607e1cab32f5a4661190f94c89573
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/3f/3f9c2b0d17b21182040b2297bf6212fe
Normal file
BIN
Unity3_lab/Library/Artifacts/3f/3f9c2b0d17b21182040b2297bf6212fe
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/41/412a0a26f019332519829947b7def005
Normal file
BIN
Unity3_lab/Library/Artifacts/41/412a0a26f019332519829947b7def005
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/47/470274e361c0b23a22cfbba203694b79
Normal file
BIN
Unity3_lab/Library/Artifacts/47/470274e361c0b23a22cfbba203694b79
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/4b/4b32c35d3fb26a91b8a6196a44403cca
Normal file
BIN
Unity3_lab/Library/Artifacts/4b/4b32c35d3fb26a91b8a6196a44403cca
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/4d/4d56743fd6cdede570271ca74c947696
Normal file
BIN
Unity3_lab/Library/Artifacts/4d/4d56743fd6cdede570271ca74c947696
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/4e/4e16a59a7feb67918979145bc5438e1f
Normal file
BIN
Unity3_lab/Library/Artifacts/4e/4e16a59a7feb67918979145bc5438e1f
Normal file
Binary file not shown.
BIN
Unity3_lab/Library/Artifacts/51/5131873d21a0a24bad5ab318687b2b7d
Normal file
BIN
Unity3_lab/Library/Artifacts/51/5131873d21a0a24bad5ab318687b2b7d
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user