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


Messages In This Thread
4/15/11 - by Jacob__mybb_import1 - 04-15-2011, 10:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)