Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
car-sim-remaster
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9631059
car-sim-remaster
Commits
7db09697
Commit
7db09697
authored
Aug 03, 2020
by
Danial KordModanlou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Car AI system updated
parent
1acb95d7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50001 additions
and
42650 deletions
+50001
-42650
indexLayout.xml
.idea/.idea.car-sim-remaster/.idea/indexLayout.xml
+0
-1
workspace.xml
.idea/.idea.car-sim-remaster/.idea/workspace.xml
+360
-248
NEW 1.unity
Assets/Scenes/NEW 1.unity
+49635
-42394
CarAIController.cs
Assets/UTS_PRO/Scripts/Car/CarAIController.cs
+3
-3
Side.cs
Assets/scripts/Side.cs
+3
-4
No files found.
.idea/.idea.car-sim-remaster/.idea/indexLayout.xml
View file @
7db09697
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
<Path>
.vs
</Path>
<Path>
.vs
</Path>
<Path>
Library
</Path>
<Path>
Library
</Path>
<Path>
Logs
</Path>
<Path>
Logs
</Path>
<Path>
Temp
</Path>
<Path>
obj
</Path>
<Path>
obj
</Path>
</explicitExcludes>
</explicitExcludes>
</component>
</component>
...
...
.idea/.idea.car-sim-remaster/.idea/workspace.xml
View file @
7db09697
This diff is collapsed.
Click to expand it.
Assets/Scenes/NEW 1.unity
View file @
7db09697
This diff is collapsed.
Click to expand it.
Assets/UTS_PRO/Scripts/Car/CarAIController.cs
View file @
7db09697
...
@@ -380,10 +380,10 @@ public class CarAIController : MonoBehaviour
...
@@ -380,10 +380,10 @@ public class CarAIController : MonoBehaviour
{
{
MovePath
MP
=
car
.
GetComponent
<
MovePath
>();
MovePath
MP
=
car
.
GetComponent
<
MovePath
>();
if
(
MP
.
w
==
movePath
.
w
)
// if (MP.w == movePath.w) @Danial
{
//
{
ReasonsStoppingCars
.
CarInView
(
car
,
rigbody
,
distance
,
startSpeed
,
ref
moveSpeed
,
ref
tempStop
,
distanceToCar
);
ReasonsStoppingCars
.
CarInView
(
car
,
rigbody
,
distance
,
startSpeed
,
ref
moveSpeed
,
ref
tempStop
,
distanceToCar
);
}
//
}
}
}
}
}
else
if
(
hit
.
transform
.
CompareTag
(
"Bcycle"
))
else
if
(
hit
.
transform
.
CompareTag
(
"Bcycle"
))
...
...
Assets/scripts/Side.cs
View file @
7db09697
...
@@ -41,7 +41,7 @@ public class Side : MonoBehaviour
...
@@ -41,7 +41,7 @@ public class Side : MonoBehaviour
*/
*/
private
void
OnTriggerEnter
(
Collider
other
)
private
void
OnTriggerEnter
(
Collider
other
)
{
{
print
(
other
.
transform
.
name
);
if
(
other
.
transform
.
root
.
tag
==
"Player"
)
if
(
other
.
transform
.
root
.
tag
==
"Player"
)
{
{
other
.
transform
.
root
.
GetComponent
<
ShoulderVibrate
>().
shoulderOn
=
1
;
other
.
transform
.
root
.
GetComponent
<
ShoulderVibrate
>().
shoulderOn
=
1
;
...
@@ -50,7 +50,7 @@ public class Side : MonoBehaviour
...
@@ -50,7 +50,7 @@ public class Side : MonoBehaviour
private
void
OnTriggerExit
(
Collider
other
)
private
void
OnTriggerExit
(
Collider
other
)
{
{
print
(
other
.
transform
.
name
);
if
(
other
.
transform
.
root
.
tag
==
"Player"
)
if
(
other
.
transform
.
root
.
tag
==
"Player"
)
{
{
other
.
transform
.
root
.
GetComponent
<
ShoulderVibrate
>().
shoulderOn
=
0
;
other
.
transform
.
root
.
GetComponent
<
ShoulderVibrate
>().
shoulderOn
=
0
;
...
@@ -59,8 +59,7 @@ public class Side : MonoBehaviour
...
@@ -59,8 +59,7 @@ public class Side : MonoBehaviour
private
void
OnTriggerStay
(
Collider
other
)
private
void
OnTriggerStay
(
Collider
other
)
{
{
print
(
other
.
transform
.
name
);
print
(
other
.
transform
.
name
);
if
(
other
.
transform
.
root
.
tag
==
"Player"
)
if
(
other
.
transform
.
root
.
tag
==
"Player"
)
{
{
other
.
transform
.
root
.
GetComponent
<
ShoulderVibrate
>().
shoulderOn
=
1
;
other
.
transform
.
root
.
GetComponent
<
ShoulderVibrate
>().
shoulderOn
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment