Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
4/15/11
#1
  • Using welds no longer breaks FixedRotations
  • Optimized the explosions a bit. I unintentionally fixed rocket jumping while doing this, but it's a little bit overpowered!
  • Added traces! Traces allow you to draw an invisible line from a point in the world and find the first part it collides with.

There are 2 ways to use traces:

[lua]Character:getTrace() --finds the part the character's arm is pointed at, useful for tools[/lua]

[lua]World:getTrace(Vec2D startPos, number angle) -- traces from the specified point in the world[/lua]

Both of these functions return a TraceResult object, which has the following properties:
  • part
  • start (Vec2D)
  • end (Vec2D)
  • distance (Vec2D)

If someone wants to add the info on traces to the wiki, that would be good!
Reply
#2
Nice!
But anyways, i cant open games or profile, and community says database error Tongue
Created the getTrace page on wiki Smile
http://buildism.net/wiki/w/index.php?title=GetTrace
Please tell me if i put wrong information there! =D
[Image: 76561198036192536.png][Image: Ava2.gif]
AntiBoomz0r @ roblox,xfire
AntiBoomz @ minecraft
MiikaFTW @ steam
Reply
#3
YOU REMOVED ROCKET JUMPING?
I like birds, but I hate foxes. If they eat my guinea pigs, I swear i'm going to-------
Reply
#4
Hm, "TraceResult" does not have a property called "end"... That what it says to me Q_Q
[Image: 76561198036192536.png][Image: Ava2.gif]
AntiBoomz0r @ roblox,xfire
AntiBoomz @ minecraft
MiikaFTW @ steam
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)