04-15-2011, 10:22 PM
- 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!