Author Topic: [RESOURCE] Line drawing support files (Support_ShapeLines)  (Read 1753 times)

[img width=1000]n/img]

A resource for modders to draw debugging lines for raycasts and stuff. Most of you can probably make this on your own, but this is also for reference for those who want to figure out how to create and rotate static shapes for things like tracers.

Note that the way that the shapes are rotated all involve no rotation around the x and y axis at the same time. If you don't understand what I mean, don't worry - it's only relevant if you want to do something like a rotating cylinder around the cylinder's axis. To change this behavior you will need to screw with the %xyz and %u lines in StaticShape::drawLine.

Rotation and positioning code adapted from Port's new brick tool. Ty port, ur such a cutie <3

Comes with a 1x1x1TU box so you can use this support script right out of the box. If you want to make your own tracer shapes with the same scale as the ones used in the image above, you should use a scale setting of 0.1.

https://cdn.discordapp.com/attachments/372648606383210508/702328962734620702/Support_ShapelinesV2.zip

keywords: line draw, line drawing, static shape lines, staticshape wire, 3d line
« Last Edit: April 21, 2020, 08:00:55 PM by Conan »

But can it be used to draw pictures???