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 » Scripters
Home Search
 

Re: Magnitude question

Previous Thread :: Next Thread 
Jeysea is not online. Jeysea
Joined: 13 Apr 2015
Total Posts: 268
12 Sep 2015 10:46 AM
Is it possible to print out parts that a near one part? Say part1 is 13 studs away from part2, but 5 studs away from part3, could it print the closest part without iterating through every single part?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
12 Sep 2015 10:49 AM
Iterating to get the magnitudes and math.min.


Muad'Dib
Report Abuse
Jeysea is not online. Jeysea
Joined: 13 Apr 2015
Total Posts: 268
12 Sep 2015 11:00 AM
Yeah, that's not the solution I want but I think it may be the only solution. There isn't any way to just center a search around a part?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
12 Sep 2015 11:01 AM
If only Roblox let us script in C or something. Then it would be loads faster.
(Almost wrote fatter on accident)
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
12 Sep 2015 11:10 AM
You want a Region3. Look it up in the Wiki. So find which Parts are in an area; then measure the distance of just those parts...
Report Abuse
Jeysea is not online. Jeysea
Joined: 13 Apr 2015
Total Posts: 268
12 Sep 2015 11:37 AM
http://wiki.roblox.com/index.php?title=API:Class/Workspace/FindPartsInRegion3

Excellent!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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