Why export the GridMap

Hi,

when checking if the collider is a GridMap, we already have the current GridMap the raycast is seeing, why do we need to export a variable and select the node in the base level?

Has it any advantages over the collider provided by the raycast itself?

Hi,

I think its just clarity for beginners to use the exported gridmap variable rather than using the collider returned by the raycast although both do work.

Hope this clarifies as i changed my code to use the collider to test it and i cant find any issue with it other than maybe a negliable performance hit as it checks the collider rather than just directly using the reference.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms