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
|
  |
| 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
|
  |
 |
| 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 |
|
|
|
| 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
|
  |
| Joined: 04 Jul 2008 |
| Total Posts: 14763 |
|
|
| 12 May 2009 03:29 PM |
| vec.unit = vec / vec.magnitude |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 12 May 2009 03:51 PM |
| I did some work with pythag's theorem. Know what I learned? Nothing. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 05 Feb 2008 |
| Total Posts: 8453 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 05 Feb 2008 |
| Total Posts: 8453 |
|
|
| 12 May 2009 04:01 PM |
| earth has a very good point actually. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
 |
| 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
|
  |
| 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
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 13 May 2009 02:10 PM |
| Didn't sound arrogant enough to me. |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 04:50 PM |
| ...Some one has found bug, with what they can do silent necrobumps.... DAAYUUUMM.... |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 04:58 PM |
| It's not a bug. It's called a filter. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|