generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Compass

Previous Thread :: Next Thread 
ENET is not online. ENET
Joined: 01 Jan 2010
Total Posts: 4820
01 Sep 2011 11:56 PM
I am making a compass(gui) and the objective is to place an arrow on a circle's edge pointing towards the object. So I am ignoring the Y vector seeing as i am converting to 2d.

I need help on figuring out how to do this.

Part1: Vector3.new(0,0,0); --Always 0 because it is the torso :)>
Part2: Vector3.new(10,0,10);

p1 = {0,0};
p2 = {Part2.X, Part2.Z};

I need to get the distance of those and put them in a gui which is easy. However, I want the radius of the circle to be 30. So I need to amplify the position by 30 without losing acurate positioniong. I thought about getting a equation for the line containing the points and inputing x as 30. Would that work? If so that is easy... I am sure my answer is obvious and I am just missing it. Anyways, about the line equation, would it work?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image