Skip to content

Commit 9b5cccd

Browse files
ericboisehadiTab
authored andcommitted
fix var name issue in quick start 03
1 parent 2bd841b commit 9b5cccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quickstart/03-raycast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
# Included layers can be hit by the rays. Otherwise the ray will go through the layer
4242
layer_mask = 0
4343
tohitlayers = ["Default", "NPC", "Pedestrian", "Obstacle"]
44-
for l in tohitlayers:
45-
layer_mask |= 1 << layers[l]
44+
for layer in tohitlayers:
45+
layer_mask |= 1 << layers[layer]
4646

4747
# raycast returns None if the ray doesn't collide with anything
4848
# hit also has the point property which is the Unity position vector of where the ray collided with something

0 commit comments

Comments
 (0)