Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement raycast lookahead collision for missiles #2472

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions Assets/Prefabs/Missiles/ArrowMissile.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -150,19 +150,6 @@ MonoBehaviour:
PreviewIndex: 0
PreviewID: 3
PreviewClip: 0
--- !u!135 &135236093773449130
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1712884651827938}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 0
serializedVersion: 2
m_Radius: 0.4
m_Center: {x: 0, y: 0, z: 0}
--- !u!108 &108732554255048532
Light:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -250,33 +237,3 @@ MonoBehaviour:
PostImpactLifespanInSeconds: 0.6
PostImpactLightMultiplier: 1.5
ImpactSound: 4
--- !u!54 &54102960107042576
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1712884651827938}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!64 &64298782196861766
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1712884651827938}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 0
serializedVersion: 4
m_Convex: 1
m_CookingOptions: 30
m_Mesh: {fileID: 0}
31 changes: 1 addition & 30 deletions Assets/Prefabs/Missiles/ColdMissile.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,6 @@ MonoBehaviour:
PreviewIndex: 0
PreviewID: 3
PreviewClip: 0
--- !u!135 &135961771109985534
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1770169996000996}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.4
m_Center: {x: 0, y: 0, z: 0}
--- !u!108 &108958489047367644
Light:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -248,20 +235,4 @@ MonoBehaviour:
LifespanInSeconds: 8
PostImpactLifespanInSeconds: 0.6
PostImpactLightMultiplier: 1.5
ImpactSound: 90
--- !u!54 &54482902062701562
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1770169996000996}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
ImpactSound: 90
31 changes: 1 addition & 30 deletions Assets/Prefabs/Missiles/FireMissile.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,6 @@ MonoBehaviour:
PreviewIndex: 0
PreviewID: 3
PreviewClip: 0
--- !u!135 &135961771109985534
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1770169996000996}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.4
m_Center: {x: 0, y: 0, z: 0}
--- !u!108 &108958489047367644
Light:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -248,20 +235,4 @@ MonoBehaviour:
LifespanInSeconds: 8
PostImpactLifespanInSeconds: 0.6
PostImpactLightMultiplier: 1.5
ImpactSound: 89
--- !u!54 &54482902062701562
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1770169996000996}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
ImpactSound: 89
31 changes: 1 addition & 30 deletions Assets/Prefabs/Missiles/MagicMissile.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,6 @@ MonoBehaviour:
PreviewIndex: 0
PreviewID: 3
PreviewClip: 0
--- !u!135 &135961771109985534
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1770169996000996}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.4
m_Center: {x: 0, y: 0, z: 0}
--- !u!108 &108958489047367644
Light:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -248,20 +235,4 @@ MonoBehaviour:
LifespanInSeconds: 8
PostImpactLifespanInSeconds: 0.6
PostImpactLightMultiplier: 1.5
ImpactSound: 86
--- !u!54 &54482902062701562
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1770169996000996}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
ImpactSound: 86
31 changes: 1 addition & 30 deletions Assets/Prefabs/Missiles/PoisonMissile.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,6 @@ MonoBehaviour:
PreviewIndex: 0
PreviewID: 3
PreviewClip: 0
--- !u!135 &135961771109985534
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1770169996000996}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.4
m_Center: {x: 0, y: 0, z: 0}
--- !u!108 &108958489047367644
Light:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -248,20 +235,4 @@ MonoBehaviour:
LifespanInSeconds: 8
PostImpactLifespanInSeconds: 0.6
PostImpactLightMultiplier: 1.5
ImpactSound: 87
--- !u!54 &54482902062701562
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1770169996000996}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
ImpactSound: 87
31 changes: 1 addition & 30 deletions Assets/Prefabs/Missiles/ShockMissile.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,6 @@ MonoBehaviour:
PreviewIndex: 0
PreviewID: 3
PreviewClip: 0
--- !u!135 &135961771109985534
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1770169996000996}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.4
m_Center: {x: 0, y: 0, z: 0}
--- !u!108 &108958489047367644
Light:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -248,20 +235,4 @@ MonoBehaviour:
LifespanInSeconds: 8
PostImpactLifespanInSeconds: 0.6
PostImpactLightMultiplier: 1.5
ImpactSound: 88
--- !u!54 &54482902062701562
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1770169996000996}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
ImpactSound: 88
Loading