Compare commits

...

5 commits

Author SHA1 Message Date
Sc0rch-thinks 72d66e5984 game(scripts/carcon): interim fsm
aaaaaa
handover to @mark
2024-08-15 02:31:58 +08:00
Sc0rch-thinks 2ad29e481f game(scripts/liftcon): annoying sia
remove annoying debug.log
2024-08-15 02:31:12 +08:00
Sc0rch-thinks 5c2adb45b8 game(prefabs): add colliders 2024-08-15 02:30:42 +08:00
Sc0rch-thinks 187cee6436 unity: conifiers... please... 2024-08-15 02:30:18 +08:00
Sc0rch-thinks 395250a92d game(models): unload car.fbx
i changed the pivot of car by 180deg
i hope un*ty didnt remove anything
2024-08-15 02:29:27 +08:00
27 changed files with 1232 additions and 98 deletions

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4e0c1f4ea23100544a0fb59b0d44d8f3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,114 @@
fileFormatVersion: 2
guid: d9c4f91dc2ea22b499f3567b877a2052
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: 3
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: 3
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View file

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 57737c1a61f488b4d899846ba78ecc7c
guid: 5403297440b917146bcd7b393ab61bdf
DefaultImporter:
externalObjects: {}
userData:

View file

@ -0,0 +1,114 @@
fileFormatVersion: 2
guid: b31d66baa82c14345be3207da2ea0a6a
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 0
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: 1
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
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: 3
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View file

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 38c13996e867ef34dbfb5c7bf32f2d2d
guid: a4777b643e48a204ebe89b29a6b8e1db
DefaultImporter:
externalObjects: {}
userData:

View file

@ -0,0 +1,114 @@
fileFormatVersion: 2
guid: 4608600605cfd0947af9be8854142e0a
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: 3
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: 3
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View file

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 9567f054637bcab479de2f96d0e368be
guid: b996e53cf751cb94bb9b06fb984fe3ce
DefaultImporter:
externalObjects: {}
userData:

View file

@ -0,0 +1,114 @@
fileFormatVersion: 2
guid: ee10159d8f9a49746bb7abea8243d8e5
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: 3
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: 3
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ffa7a9d68571acc4aae638cea789c308
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,114 @@
fileFormatVersion: 2
guid: 7fda7d810f4d63945adffd82dec3ee79
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: 3
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: 3
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7938a5d3ce37484458ec3f9367aee975
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

BIN
RunningLateGame/Assets/Models/car.fbx (Stored with Git LFS)

Binary file not shown.

View file

@ -167,7 +167,7 @@ Light:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_Lightmapping: 1
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1

View file

@ -11,7 +11,6 @@ GameObject:
- component: {fileID: 3504275986247488853}
- component: {fileID: 393277625487223837}
- component: {fileID: 1178082712844161183}
- component: {fileID: 7159686522921610759}
m_Layer: 0
m_Name: front_r
m_TagString: Untagged
@ -27,8 +26,8 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1576117342465633437}
serializedVersion: 2
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0.9111191, y: -0.27687195, z: -1.1892651}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0.91111755, y: -0.27687195, z: -1.1892643}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -84,28 +83,6 @@ MeshRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!64 &7159686522921610759
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1576117342465633437}
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: 5
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: 8926006964169710815, guid: ea8f4c36c1c70304680c14a8eaa0a194, type: 3}
--- !u!1 &1585823250401313723
GameObject:
m_ObjectHideFlags: 0
@ -116,7 +93,7 @@ GameObject:
m_Component:
- component: {fileID: 252434513173039199}
m_Layer: 0
m_Name: wheels
m_Name: wheels model
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@ -130,8 +107,8 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1585823250401313723}
serializedVersion: 2
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0, y: 0, z: 0}
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:
@ -139,7 +116,7 @@ Transform:
- {fileID: 847916940694079671}
- {fileID: 1272228358489072068}
- {fileID: 3504275986247488853}
m_Father: {fileID: 333875775932258059}
m_Father: {fileID: 8528071647759204021}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1882828802120218224
GameObject:
@ -152,7 +129,8 @@ GameObject:
- component: {fileID: 8528071647759204021}
- component: {fileID: 5494633654054301628}
- component: {fileID: 7525013905322787369}
- component: {fileID: 6793730355832833145}
- component: {fileID: 7736027833845022573}
- component: {fileID: 4741165319408729165}
m_Layer: 0
m_Name: car_body
m_TagString: Untagged
@ -172,7 +150,9 @@ Transform:
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Children:
- {fileID: 252434513173039199}
- {fileID: 7466846569790585965}
m_Father: {fileID: 333875775932258059}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &5494633654054301628
@ -226,8 +206,35 @@ MeshRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!64 &6793730355832833145
MeshCollider:
--- !u!54 &7736027833845022573
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1882828802120218224}
serializedVersion: 4
m_Mass: 1132
m_Drag: 0
m_AngularDrag: 0.05
m_CenterOfMass: {x: 0, y: 0, z: 0}
m_InertiaTensor: {x: 1, y: 1, z: 1}
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!65 &4741165319408729165
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
@ -244,10 +251,9 @@ MeshCollider:
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 5
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: 7289310808242944780, guid: ea8f4c36c1c70304680c14a8eaa0a194, type: 3}
serializedVersion: 3
m_Size: {x: 1.829911, y: 1.3691936, z: 3.9361458}
m_Center: {x: 0, y: 0.40388846, z: 0.023452878}
--- !u!1 &1997848066853809217
GameObject:
m_ObjectHideFlags: 0
@ -257,6 +263,8 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 333875775932258059}
- component: {fileID: 916883777513156897}
- component: {fileID: 5275302391356372185}
m_Layer: 0
m_Name: car
m_TagString: Untagged
@ -277,10 +285,56 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 7447171471544466252}
- {fileID: 8528071647759204021}
- {fileID: 252434513173039199}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &916883777513156897
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1997848066853809217}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bc82a40176164f02897928bd573bc2ca, type: 3}
m_Name:
m_EditorClassIdentifier:
carPosition: {fileID: 8528071647759204021}
stoppingDistance: 2
slowingSpeed: 7
slowingDistance: 15
reverseDist: 15
--- !u!114 &5275302391356372185
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1997848066853809217}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6da9430305b32f446a2517f4a73fdf57, type: 3}
m_Name:
m_EditorClassIdentifier:
motorTorque: 10000
turnAngle: 30
wheels:
- wheelModel: {fileID: 3993773033060434468}
wheelCollider: {fileID: 4214223750479947178}
axel: 1
- wheelModel: {fileID: 2031704112130455496}
wheelCollider: {fileID: 2506222557474293230}
axel: 1
- wheelModel: {fileID: 3633800379248508774}
wheelCollider: {fileID: 2771105198467250453}
axel: 0
- wheelModel: {fileID: 1576117342465633437}
wheelCollider: {fileID: 8834937984585568160}
axel: 0
brakeForce: 100000
braking: 0
--- !u!1 &2031704112130455496
GameObject:
m_ObjectHideFlags: 0
@ -292,7 +346,6 @@ GameObject:
- component: {fileID: 847916940694079671}
- component: {fileID: 2136089017536569327}
- component: {fileID: 8264774488120869002}
- component: {fileID: 285125094718234229}
m_Layer: 0
m_Name: back_r
m_TagString: Untagged
@ -308,8 +361,8 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2031704112130455496}
serializedVersion: 2
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0.9111191, y: -0.27687195, z: 1.1892672}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0.91111755, y: -0.27687195, z: 1.1892662}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -365,14 +418,68 @@ MeshRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!64 &285125094718234229
MeshCollider:
--- !u!1 &3469990991250051544
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2031704112130455496}
m_Material: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7803729789147182677}
- component: {fileID: 4214223750479947178}
m_Layer: 0
m_Name: back_l
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7803729789147182677
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3469990991250051544}
serializedVersion: 2
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.9111191, y: -0.27687195, z: 1.1892672}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7466846569790585965}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!146 &4214223750479947178
WheelCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3469990991250051544}
serializedVersion: 2
m_Center: {x: 0, y: 0.285, z: 0}
m_Radius: 0.385
m_SuspensionSpring:
spring: 3500
damper: 450
targetPosition: 0.5
m_SuspensionDistance: 0.57
m_ForceAppPointDistance: 0
m_Mass: 20.38
m_WheelDampingRate: 0.89
m_ForwardFriction:
m_ExtremumSlip: 0.4
m_ExtremumValue: 1
m_AsymptoteSlip: 0.8
m_AsymptoteValue: 0.5
m_Stiffness: 1
m_SidewaysFriction:
m_ExtremumSlip: 0.2
m_ExtremumValue: 1
m_AsymptoteSlip: 0.5
m_AsymptoteValue: 0.75
m_Stiffness: 1
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
@ -380,13 +487,8 @@ MeshCollider:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 5
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: -4314786260924398865, guid: ea8f4c36c1c70304680c14a8eaa0a194, type: 3}
m_ProvidesContacts: 0
--- !u!1 &3633800379248508774
GameObject:
m_ObjectHideFlags: 0
@ -398,7 +500,6 @@ GameObject:
- component: {fileID: 1272228358489072068}
- component: {fileID: 5227444665846327554}
- component: {fileID: 1848986504018414813}
- component: {fileID: 4824614669126866911}
m_Layer: 0
m_Name: front_l
m_TagString: Untagged
@ -414,8 +515,8 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3633800379248508774}
serializedVersion: 2
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.9111191, y: -0.27687195, z: -1.1892651}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.91111755, y: -0.27687195, z: -1.1892643}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -471,28 +572,41 @@ MeshRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!64 &4824614669126866911
MeshCollider:
--- !u!1 &3647170892109356577
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3633800379248508774}
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: 5
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: -4127900863617580785, guid: ea8f4c36c1c70304680c14a8eaa0a194, type: 3}
serializedVersion: 6
m_Component:
- component: {fileID: 7466846569790585965}
m_Layer: 0
m_Name: wheels Collider
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7466846569790585965
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3647170892109356577}
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:
- {fileID: 7803729789147182677}
- {fileID: 1144134790270209700}
- {fileID: 4984185319037985693}
- {fileID: 5078849275076133642}
m_Father: {fileID: 8528071647759204021}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &3993773033060434468
GameObject:
m_ObjectHideFlags: 0
@ -504,7 +618,6 @@ GameObject:
- component: {fileID: 6917814205349713841}
- component: {fileID: 5683561058445176945}
- component: {fileID: 1381997775711085228}
- component: {fileID: 7748614662863676227}
m_Layer: 0
m_Name: back_l
m_TagString: Untagged
@ -520,8 +633,8 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3993773033060434468}
serializedVersion: 2
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.9111191, y: -0.27687195, z: 1.1892672}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.91111755, y: -0.27687195, z: 1.1892662}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -577,14 +690,99 @@ MeshRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!64 &7748614662863676227
MeshCollider:
--- !u!1 &4226821840045116667
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3993773033060434468}
m_Material: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7447171471544466252}
m_Layer: 0
m_Name: Target
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7447171471544466252
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4226821840045116667}
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: 333875775932258059}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &4323129995050382310
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4984185319037985693}
- component: {fileID: 2771105198467250453}
m_Layer: 0
m_Name: front_l
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4984185319037985693
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4323129995050382310}
serializedVersion: 2
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.9111191, y: -0.27687195, z: -1.1892651}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7466846569790585965}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!146 &2771105198467250453
WheelCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4323129995050382310}
serializedVersion: 2
m_Center: {x: 0, y: 0.285, z: 0}
m_Radius: 0.385
m_SuspensionSpring:
spring: 3500
damper: 450
targetPosition: 0.5
m_SuspensionDistance: 0.57
m_ForceAppPointDistance: 0
m_Mass: 20.38
m_WheelDampingRate: 0.89
m_ForwardFriction:
m_ExtremumSlip: 0.4
m_ExtremumValue: 1
m_AsymptoteSlip: 0.8
m_AsymptoteValue: 0.5
m_Stiffness: 1
m_SidewaysFriction:
m_ExtremumSlip: 0.2
m_ExtremumValue: 1
m_AsymptoteSlip: 0.5
m_AsymptoteValue: 0.75
m_Stiffness: 1
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
@ -592,10 +790,147 @@ MeshCollider:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 5
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: -6689342680031020648, guid: ea8f4c36c1c70304680c14a8eaa0a194, type: 3}
m_ProvidesContacts: 0
--- !u!1 &6686568254008148340
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1144134790270209700}
- component: {fileID: 2506222557474293230}
m_Layer: 0
m_Name: back_r
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1144134790270209700
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6686568254008148340}
serializedVersion: 2
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0.9111191, y: -0.27687195, z: 1.1892672}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7466846569790585965}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!146 &2506222557474293230
WheelCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6686568254008148340}
serializedVersion: 2
m_Center: {x: 0, y: 0.285, z: 0}
m_Radius: 0.385
m_SuspensionSpring:
spring: 3500
damper: 450
targetPosition: 0.5
m_SuspensionDistance: 0.57
m_ForceAppPointDistance: 0
m_Mass: 20.38
m_WheelDampingRate: 0.89
m_ForwardFriction:
m_ExtremumSlip: 0.4
m_ExtremumValue: 1
m_AsymptoteSlip: 0.8
m_AsymptoteValue: 0.5
m_Stiffness: 1
m_SidewaysFriction:
m_ExtremumSlip: 0.2
m_ExtremumValue: 1
m_AsymptoteSlip: 0.5
m_AsymptoteValue: 0.75
m_Stiffness: 1
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_Enabled: 1
m_ProvidesContacts: 0
--- !u!1 &7189054458251531294
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5078849275076133642}
- component: {fileID: 8834937984585568160}
m_Layer: 0
m_Name: front_r
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5078849275076133642
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7189054458251531294}
serializedVersion: 2
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0.9111191, y: -0.27687195, z: -1.1892651}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7466846569790585965}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!146 &8834937984585568160
WheelCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7189054458251531294}
serializedVersion: 2
m_Center: {x: 0, y: 0.285, z: 0}
m_Radius: 0.385
m_SuspensionSpring:
spring: 3500
damper: 450
targetPosition: 0.5
m_SuspensionDistance: 0.57
m_ForceAppPointDistance: 0
m_Mass: 20.38
m_WheelDampingRate: 0.89
m_ForwardFriction:
m_ExtremumSlip: 0.4
m_ExtremumValue: 1
m_AsymptoteSlip: 0.8
m_AsymptoteValue: 0.5
m_Stiffness: 1
m_SidewaysFriction:
m_ExtremumSlip: 0.2
m_ExtremumValue: 1
m_AsymptoteSlip: 0.5
m_AsymptoteValue: 0.75
m_Stiffness: 1
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_Enabled: 1
m_ProvidesContacts: 0

View file

@ -420,7 +420,46 @@ PrefabInstance:
type: 3}
insertIndex: -1
addedObject: {fileID: 6760541242613532351}
- targetCorrespondingSourceObject: {fileID: -5720050277342269183, guid: f663772381973ad4bb4ee78cb7208483,
type: 3}
insertIndex: -1
addedObject: {fileID: 4927235986377470560}
- targetCorrespondingSourceObject: {fileID: -906469704714294827, guid: f663772381973ad4bb4ee78cb7208483,
type: 3}
insertIndex: -1
addedObject: {fileID: 9010044277707093172}
- targetCorrespondingSourceObject: {fileID: 4775066634657832274, guid: f663772381973ad4bb4ee78cb7208483,
type: 3}
insertIndex: -1
addedObject: {fileID: 5444995319941850757}
m_SourcePrefab: {fileID: 100100000, guid: f663772381973ad4bb4ee78cb7208483, type: 3}
--- !u!1 &2192647495712954417 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: -5720050277342269183, guid: f663772381973ad4bb4ee78cb7208483,
type: 3}
m_PrefabInstance: {fileID: 3383212480875292976}
m_PrefabAsset: {fileID: 0}
--- !u!65 &4927235986377470560
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2192647495712954417}
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: 0.6532735, y: 2.7052734, z: 0.040338404}
m_Center: {x: 0.32400003, y: -0.14999998, z: 0.4677229}
--- !u!1 &2464309033493877857 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: f663772381973ad4bb4ee78cb7208483,
@ -448,6 +487,34 @@ Transform:
type: 3}
m_PrefabInstance: {fileID: 3383212480875292976}
m_PrefabAsset: {fileID: 0}
--- !u!1 &6744148450908340453 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: -906469704714294827, guid: f663772381973ad4bb4ee78cb7208483,
type: 3}
m_PrefabInstance: {fileID: 3383212480875292976}
m_PrefabAsset: {fileID: 0}
--- !u!64 &9010044277707093172
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6744148450908340453}
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: 5
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: 1370928794342355758, guid: f663772381973ad4bb4ee78cb7208483, type: 3}
--- !u!1 &7023884092059465718 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: -3491894390173606202, guid: f663772381973ad4bb4ee78cb7208483,
@ -491,6 +558,33 @@ BoxCollider:
serializedVersion: 3
m_Size: {x: 0.37, y: 1, z: 0.12}
m_Center: {x: -0.09, y: -0.16, z: 0}
--- !u!1 &7833980892248077410 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 4775066634657832274, guid: f663772381973ad4bb4ee78cb7208483,
type: 3}
m_PrefabInstance: {fileID: 3383212480875292976}
m_PrefabAsset: {fileID: 0}
--- !u!65 &5444995319941850757
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7833980892248077410}
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: 0.6532735, y: 2.7052734, z: 0.040338673}
m_Center: {x: -0.32400003, y: -0.14999998, z: 0.467723}
--- !u!1001 &5647341264366037705
PrefabInstance:
m_ObjectHideFlags: 0
@ -561,11 +655,105 @@ PrefabInstance:
type: 3}
insertIndex: -1
addedObject: {fileID: 1264057328957091969}
m_AddedComponents: []
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: -6872566349595347344, guid: 139be33a57ec9714c94b860296cef64a,
type: 3}
insertIndex: -1
addedObject: {fileID: 2717898525432941145}
- targetCorrespondingSourceObject: {fileID: -5378403863114660676, guid: 139be33a57ec9714c94b860296cef64a,
type: 3}
insertIndex: -1
addedObject: {fileID: 4661544926543252660}
- targetCorrespondingSourceObject: {fileID: 8444016501728991099, guid: 139be33a57ec9714c94b860296cef64a,
type: 3}
insertIndex: -1
addedObject: {fileID: 3593289818766153133}
m_SourcePrefab: {fileID: 100100000, guid: 139be33a57ec9714c94b860296cef64a, type: 3}
--- !u!1 &4283009766082919858 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 8444016501728991099, guid: 139be33a57ec9714c94b860296cef64a,
type: 3}
m_PrefabInstance: {fileID: 5647341264366037705}
m_PrefabAsset: {fileID: 0}
--- !u!64 &3593289818766153133
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4283009766082919858}
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: 5
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: -5326483830545496561, guid: 139be33a57ec9714c94b860296cef64a, type: 3}
--- !u!4 &5320399916219764002 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 139be33a57ec9714c94b860296cef64a,
type: 3}
m_PrefabInstance: {fileID: 5647341264366037705}
m_PrefabAsset: {fileID: 0}
--- !u!1 &7980624438504823993 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: -6872566349595347344, guid: 139be33a57ec9714c94b860296cef64a,
type: 3}
m_PrefabInstance: {fileID: 5647341264366037705}
m_PrefabAsset: {fileID: 0}
--- !u!65 &2717898525432941145
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7980624438504823993}
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: 0.6532735, y: 2.7052734, z: 0.040338702}
m_Center: {x: -0.32400003, y: -0.14999998, z: 0.50278807}
--- !u!1 &8864052578494131829 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: -5378403863114660676, guid: 139be33a57ec9714c94b860296cef64a,
type: 3}
m_PrefabInstance: {fileID: 5647341264366037705}
m_PrefabAsset: {fileID: 0}
--- !u!65 &4661544926543252660
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8864052578494131829}
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: 0.6532735, y: 2.7052734, z: 0.040338613}
m_Center: {x: 0.32400003, y: -0.14999998, z: 0.50278795}

View file

@ -51,12 +51,12 @@ public enum Axel
/// <summary>
/// inputs for acceleration
/// </summary>
private float _currentAcceleration;
[SerializeField] private float _currentAcceleration;
/// <summary>
/// inputs for turning
/// </summary>
private float _currentTurn;
[SerializeField] private float _currentTurn;
/// <summary>
/// to move the car
@ -82,7 +82,8 @@ public void SetInputs(float forwardAmount, float turnAmount)
/// </summary>
public void Move()
{
foreach (var wheel in wheels) wheel.wheelCollider.motorTorque = _currentAcceleration;
foreach (var wheel in wheels)
wheel.wheelCollider.motorTorque = _currentAcceleration;
}
/// <summary>
@ -103,8 +104,12 @@ public void Brake()
/// </summary>
public void Steering()
{
foreach (var wheel in wheels.Where(wheel => wheel.axel == Axel.Front))
wheel.wheelCollider.steerAngle = _currentTurn;
foreach (var wheel in wheels)
if (wheel.axel == Axel.Front)
{
wheel.wheelCollider.steerAngle = _currentTurn;
}
}
/// <summary>

View file

@ -62,7 +62,6 @@ private void Start()
/// </summary>
public void DoorCloser()
{
Debug.Log("DoorCloser");
if (_liftDoor.isOpen && !_liftDoor.opening)
Invoke(nameof(CloseDoor), 2f);
Invoke(nameof(DoorCloser), 2f);