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: Using arithmatic instead of .magnitude?

Previous Thread :: Next Thread 
sroge445 is not online. sroge445
Joined: 02 Jun 2008
Total Posts: 5590
12 May 2009 07:49 AM
If you make a script that finds the difference in Position between two bricks, couldn't it replace magnitude? Because you could also make it for just one value, like if your a certain hight compared to it, or just x, or just z. I think it might be more efficient.
Report Abuse
Clone512 is not online. Clone512
Joined: 02 Mar 2008
Total Posts: 7810
12 May 2009 08:20 AM
.unit draws a line between point a and b. So, you could use that to find the difference, I suppose.
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
12 May 2009 10:34 AM
? How would it return that? I guess it rounds it up to the nearest... well what does it round it to? Nearest 1?
Report Abuse
chess123mate is not online. chess123mate
Joined: 09 Aug 2007
Total Posts: 1386
12 May 2009 02:24 PM
.magnitude uses the following equation (Pythagorean's theorum) :

(x^2 + y^2 + z^2)^0.5

Want the distance between just 2 coordinates?

(x^2 + y^2)^0.5

Distance between just 1?

position.y - position2.y

.unit returns a unit vector (where the magnitude is equal to 1) that points in a specific direction.
Ex:
(brick1Pos - brick2Pos).unit
Returns a unit vector that starts at brick2Pos and "looks toward" brick1Pos.
Report Abuse
Meelo is not online. Meelo
Joined: 04 Jul 2008
Total Posts: 14763
12 May 2009 03:29 PM
vec.unit = vec / vec.magnitude
Report Abuse
MrDoomBringer is not online. MrDoomBringer
Top 100 Poster
Joined: 21 Nov 2006
Total Posts: 6176
12 May 2009 03:49 PM
@Chess: That is not the pythagorean theorum, it's the distance formula.

Pythag:

a^2 + b^2 = c^2 (for right triangles, where A and B are sides and C is the hypotenuse (longest side (nested notes!)))
Report Abuse
DingDong272 is not online. DingDong272
Top 100 Poster
Joined: 08 Dec 2007
Total Posts: 9860
12 May 2009 03:51 PM
I did some work with pythag's theorem. Know what I learned? Nothing.
Report Abuse
fuggles is not online. fuggles
Joined: 01 Mar 2008
Total Posts: 13937
12 May 2009 03:52 PM
The distance formula is:

d=math.sqrt((x2-x1)^2 + (y2-y1)^2)


I hate the "You have posted in a moderated forum" junk. THe flood check stinks too.
Report Abuse
Wyoming is not online. Wyoming
Joined: 05 Feb 2008
Total Posts: 8453
12 May 2009 03:54 PM
[ Content Deleted ]
Report Abuse
MrDoomBringer is not online. MrDoomBringer
Top 100 Poster
Joined: 21 Nov 2006
Total Posts: 6176
12 May 2009 03:55 PM
Not really, we've gotten it turned off because it wigged out on us more than once.

Took away my banhammer once. Then it got personal.
Report Abuse
fuggles is not online. fuggles
Joined: 01 Mar 2008
Total Posts: 13937
12 May 2009 03:55 PM
But you know whats funny? It says I will recieve an email when my post is approved. I got that message last year sometimes. STILL NO EMAIL.
Report Abuse
MrDoomBringer is not online. MrDoomBringer
Top 100 Poster
Joined: 21 Nov 2006
Total Posts: 6176
12 May 2009 03:57 PM
It's a page for our auto-filter, no-one got any time to actually write a proper page for it. It's catching something you said.
Report Abuse
Wyoming is not online. Wyoming
Joined: 05 Feb 2008
Total Posts: 8453
12 May 2009 03:58 PM
There was a point where it did actually send the email, like, .1 of a second after you saw the screen.
Report Abuse
fuggles is not online. fuggles
Joined: 01 Mar 2008
Total Posts: 13937
12 May 2009 04:00 PM
@MDB
But what would be in that post that it would catch?
Report Abuse
earth100 is not online. earth100
Joined: 13 Dec 2007
Total Posts: 2088
12 May 2009 04:00 PM
Why don't you use the filter on the comments then?

Or does that not really work the same way?

It'd help lower all the reports you guys get of spam if you just blocked phrases like "Post this" on comments...
Report Abuse
Wyoming is not online. Wyoming
Joined: 05 Feb 2008
Total Posts: 8453
12 May 2009 04:01 PM
earth has a very good point actually.
Report Abuse
Wyoming is not online. Wyoming
Joined: 05 Feb 2008
Total Posts: 8453
12 May 2009 04:06 PM
Oh and, MDB, I know what you said about off-site links to other languages etc, which is fair enough but, wasn't that locking a bit harsh?
Report Abuse
level140roblox is not online. level140roblox
Joined: 08 Jun 2008
Total Posts: 9577
12 May 2009 04:12 PM
@mdb
Pfft. Sorry mrdoombringer, but I'm telling you now, scripters don't care much for authority. We will do what we want, when we want it. Just because you tell us not to post about something, doesn't mean we won't, actually it pretty much means we will. Until the time you come up with legitimate reasons we can't talk about other languages, we will.
Report Abuse
fuggles is not online. fuggles
Joined: 01 Mar 2008
Total Posts: 13937
12 May 2009 04:17 PM
"Oh and, MDB, I know what you said about off-site links to other languages etc, which is fair enough but, wasn't that locking a bit harsh?"


Yea, and we would have gotten away with it too. If it werent for those meddling mods...

rofl, jk.
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
13 May 2009 12:13 PM
"Scripters don't care much for authority. We will do what we want"

I'll agree as soon as they let me change a players name. THEN I'm happy.
Report Abuse
Clone512 is not online. Clone512
Joined: 02 Mar 2008
Total Posts: 7810
13 May 2009 01:31 PM
"Scripters don't care much for authority. We will do what we want", that did sound a little arrogant. xD
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
13 May 2009 02:10 PM
Didn't sound arrogant enough to me.
Report Abuse
ChuckTestaDotAvi is not online. ChuckTestaDotAvi
Joined: 03 Sep 2012
Total Posts: 439
17 Jan 2013 04:50 PM
...Some one has found bug, with what they can do silent necrobumps.... DAAYUUUMM....
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
17 Jan 2013 04:58 PM
It's not a bug. It's called a filter.
Report Abuse
ChuckTestaDotAvi is not online. ChuckTestaDotAvi
Joined: 03 Sep 2012
Total Posts: 439
17 Jan 2013 05:05 PM
Mm I though about it too. Though, wut nub is goign back in old threads and bumping them with filter... While ago this random thread got bumped too.
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