General Scripting Question, World and Local space

If I wanted to draw a ray straight down from an object relative to the world, how would I do that? Or just generally when I want to get information related to a transform is there a way to do that in local vs world?

Edit: This turned out to be an easier problem to solve than I thought. Vector.up/right/etc seem to be local, and transform.up/right/forward seem to be world space. At least I’m pretty sure they are.

Hi,

How/where did you find the information?

I found the answer via google search in the Unity help room. Here’s the link to the answer.

Although reading it again I might have been backwards in my local vs world.

Awesome. Thanks for sharing the link. :slight_smile:


See also:

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

Privacy & Terms