Group Group Group Group Group Group Group Group Group

Bubblehead wars raycast

#1

i´m in the raycast section of bubblehead wars but for some reason the raycast isn’t working, i’ve checked the whole script and i kant finde whats wrong

#2

@vegetarianzombie @bdmoakley Can you please help with this when you get a chance? Thank you - much appreciated! :]

#3

OMG! i finally fixed the script! it was just a typo in the FixedUpdate void, i’m sorry i’m really stupid

#4

It happens to all of us! I’m glad you were able to work through it. Cheers!

#5

I ran into a similar issue, not sure if it’s the same.

Ensure that the Main Camera has the MainCamera tag applied in the Inspector. As the documentation states, calling the main property on the class Camera gets the first enabled camera tagged MainCamera.

https://docs.unity3d.com/ScriptReference/Camera-main.html

3 Likes
closed #6

This topic was automatically closed after 166 days. New replies are no longer allowed.