• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
This question was closed May 25, 2016 at 08:13 PM by Le-Pampelmuse for the following reason:

Question is off-topic or not relevant

avatar image
0
Question by p1g30n · May 25, 2016 at 07:45 PM · c#unity 5transformvector3stupid

Stupid question but I have to figure out

Hi. I'm not new in programming, but still dont understand and dont know many things. And I can't undrestand what means that? Vector3 dir = enemy.position - transform.position; I can't imagine how I get new Vector3 to the enemy by taking away me position from enemy position. Someone can expalin me that so next time I could use it? Thanks.

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Le-Pampelmuse · May 25, 2016 at 08:13 PM 3
Share

Hi. This question is not stupid. But it doesn't belong here, since it has nothing to do with Unity.

You are having trouble understanding vector math. If you didn't learn it in school it can be hard to grasp immediately, but when you have gained a basic understanding of it, it will be clear in no time.

This example is getting the direction vector between 2 points. You'll want to subtract the target point from the starting point to get the right direction.

Have a look at the tutorials, there is a whole video about vector math.

It doesn't cover basic introduction to vector math, you will have to find that one out on your own, there are many math sites that explain difficult topics in an easy to understand manner.

Have a nice day.

PS: This question should not have been published, unfortunately there are moderators who have no idea what they are doing.

avatar image TBruce Le-Pampelmuse · May 25, 2016 at 08:28 PM 0
Share

I keep seeing this and I would like to know, are questions being being published by moderators or does UA just allow the person to post the question directly to the Help space?

avatar image Le-Pampelmuse TBruce · May 25, 2016 at 09:50 PM 1
Share

You are a moderator since you've had 1000 reputation yourself ;)

Default is moderated for users below 15 reputation. Help is NOT moderated, and I strongly want them to change that. Also make moderation optional and taken away from users who mis-use their moderator abilities.

Check out my Q:

http://answers.unity3d.com/questions/1186429/why-the-help-room-is-not-improving-ua-and-what-nee.html

It's very detailed and hopefully will get some attention of SaraCecilia or other Unity employees who can actually get the site operator to do changes. (it seems very weird that the site is not run by Unity itself to begin with)

PS: This question was published to Default unmoderated, because the OP has more than 15 Reputation, which is a joke limit in my opinion. Getting a few upvotes makes you immediately free to post everywhere you want, except $$anonymous$$oderators.

I moved it to Help so it doesn't show on the front page when I comment it.

Show more comments
avatar image p1g30n Le-Pampelmuse · May 26, 2016 at 12:20 PM 0
Share

Thanks, now its easier to understand.

avatar image Le-Pampelmuse p1g30n · May 26, 2016 at 08:33 PM 1
Share

No problem!

0 Replies

  • Sort: 

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

167 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

getting two errors and none of the fixes ive found online work or are relevant to my code CS0019 and CS1061 (full errors below) 0 Answers

Need help with this code? thanks. 2 Answers

How to properly split string received from server to update Vector3? 2 Answers

Moving GameObject a specific distance in the Z direction and back again - regardless of rotation 1 Answer

Need help getting randomly moving particles to head to the nearest of 4 coordinates. 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges