Nav mesh
This commit is contained in:
parent
1f41eaa61c
commit
71cfc3b3a3
7 changed files with 1494 additions and 23 deletions
5
Assets/Scenes/Main.meta
Normal file
5
Assets/Scenes/Main.meta
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a49a12d693c8f4aa598b6c474acfba05
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
File diff suppressed because it is too large
Load diff
10
Assets/Scenes/Main/NavMesh.asset
Normal file
10
Assets/Scenes/Main/NavMesh.asset
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!194 &19400000
|
||||
NavMesh:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: NavMesh
|
||||
m_MeshData: 5445534d0100000001000000000074c1000080be000074c15555234255552342000400000010000000008000a004000056414e440d00000000000000000000000000000000000000070000000c0000001800000007000000000000000b0000000e000000000000000700000000000000000000400000003fcdcccc3effff73c1000080beffff73c1aaaacc410000e040aaaacc410100c040545561c13233b33eaaaaa2c06055d5be3233b33eaaaaa2c05055153f3233b33eaaaaa2c0555561413233b33eaaaaa2c0555561413233b33e545561c1545561c13233b33e545561c1545561c13233b33e55556141b0aa6abf3233b33e55556141b0aa6abf3233b33eaaaa92c0a8aa8a3f3233b33eaaaa92c0a8aa8a3f3233b33e55556141555561413233b33e555561410100000002000300040000000000000006000000030000000000000001000000030000000300000005000000010000000000000000000400030000000000000001000000030000000500000001000200040005000000000000000100000002000000000001000000040000000700000008000100000000000000000000000200050000000000000001000000030000000800000006000700080000000000000000000000040000000000000001000000040000000a00000003000200090000000000000001000000070000000000000001000000030000000b00000009000a000b00030000000000000000000000060000000000010000000400000002008000ffffffff02ff0000050080000000000000ff000002008000ffffffff02ff0000030080000200000001ff000001008000ffffffff03ff0000000080000400000001ff000004008000ffffffff02ff0000010080000600000001ff000003008000ffffffff02ff000006008000ffffffff02ff0000000080000900000000ff000005008000ffffffff03ff0000000000000d00000000000000000000000e00000000000000000000000f0000000000000000000000100000000000000000000000110000000000000000000000120000000000000000000000130000000000000000000000140000000000000000000000150000000000000000000000160000000000000000000000170000000000000000000000ffffffff0000000000000000000000000000010000000000010000000000010000000000020000000000030000000000050000000000010000000000060000000000020000000000080000000000010000000000090000000000020001000200000015000100020000001500020003000100110003000000020011000000010002000500010002000000150002000300000005000000010002000500010002000000150002000300000005000000010002000500070000000700b0000600b000f3ffffff070000000700b00006004000fbffffff070000003d0059000600400003000000070000000700b00006003d00fdffffff070000000700590006003d0001000000070000000700b00006003d0002000000070000000700b0000600b000f9ffffff070000003d00b0000600b000fdffffff070000003d0056000600b000040000005f0000003d00b00006004000050000005f0000000700b0000600b000fdffffff5f0000000700b00006003d0000000000620000003d00b0000600b0000600000000000000000000000000000000000000
|
||||
m_Heightmaps: []
|
||||
4
Assets/Scenes/Main/NavMesh.asset.meta
Normal file
4
Assets/Scenes/Main/NavMesh.asset.meta
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4c43726ae1b6e40bd92356b53e3cceff
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
14
Assets/Scripts/Patron.cs
Normal file
14
Assets/Scripts/Patron.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class Patron : MonoBehaviour {
|
||||
|
||||
Vector3 dest;
|
||||
|
||||
void Awake() {
|
||||
Vector3 pos = GameObject.Find("node3").transform.position;
|
||||
NavMeshAgent nva = GetComponent<NavMeshAgent>();
|
||||
nva.SetDestination(pos);
|
||||
nva.updateRotation = false;
|
||||
}
|
||||
}
|
||||
8
Assets/Scripts/Patron.cs.meta
Normal file
8
Assets/Scripts/Patron.cs.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b933d79988a624405b43ff0fb8c3d527
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
|
|
@ -6,11 +6,11 @@ PhysicMaterial:
|
|||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: no_friction
|
||||
dynamicFriction: .400000006
|
||||
staticFriction: .400000006
|
||||
dynamicFriction: 0
|
||||
staticFriction: 0
|
||||
bounciness: 0
|
||||
frictionCombine: 0
|
||||
bounceCombine: 0
|
||||
frictionCombine: 1
|
||||
bounceCombine: 1
|
||||
frictionDirection2: {x: 0, y: 0, z: 0}
|
||||
dynamicFriction2: 0
|
||||
staticFriction2: 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue