Skip to content

Commit

Permalink
edit to no decision range for experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
colourfulspring committed Feb 25, 2024
1 parent c01b72a commit d0a09f2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ LineRenderer:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2710286047221272849}
m_Enabled: 1
m_Enabled: 0
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
Expand Down Expand Up @@ -576,7 +576,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2710286047221272849}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: de79dcaa17358444fa44202c1787e270, type: 3}
m_Name:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ PrefabInstance:
serializedVersion: 3
m_TransformParent: {fileID: 1581870063183487095}
m_Modifications:
- target: {fileID: 1548337883655231979, guid: a431228058383324287911e110279f5a,
type: 3}
propertyPath: m_ShowGizmos
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2708762399863795223, guid: a431228058383324287911e110279f5a,
type: 3}
propertyPath: m_RootOrder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ public Vector2 ReverselyNormalizePos2dCartesian(Vector2 pos)
Vector3 dir = new Vector3(pos.x, 0, pos.y).normalized;

// Physics.DefaultRaycastLayers means all layers will be considered during casting except Ignore Raycast layer.
RaycastHit hit;
if (Physics.Raycast(transform.position, dir, out hit, decisionRangeRadius, Physics.DefaultRaycastLayers))
{
radius = hit.distance;
}
// RaycastHit hit;
// if (Physics.Raycast(transform.position, dir, out hit, decisionRangeRadius, Physics.DefaultRaycastLayers))
// {
// radius = hit.distance;
// }

Debug.Log(this.transform.parent.gameObject.name +
", " + this.name + " onActionReceived: pos.x " + pos.x + "pos.y " + pos.y);
Expand Down

0 comments on commit d0a09f2

Please sign in to comment.