BoxRail
BoxRail Segment
Creates a Rail using Triangles based on a box of 4 points. Extrudes a Box from these 4 points.
BoxRailSegment
Extends Segment
BoxRailSegment : Segment {
Wedge : WedgePart,
TopLeft : Vector3,
TopRight : Vector3,
BottomLeft : Vector3,
BottomRight : Vector3,
DrawTop : boolean,
DrawBottom : boolean,
DrawLeft : boolean,
DrawRight : boolean,
}
Properties
Wedge
The wedge used to make the box. This will be cloned each time a new segment is created.
TopLeft
TopRight
BottomLeft
BottomRight
DrawTop
DrawBottom
DrawLeft
DrawRight
Constructors
fromData
BoxRailSegment.fromData(data: table) -> BoxRailSegment
data
{
Name : string,
Wedge : WedgePart,
TopLeft : Vector3,
TopRight : Vector3,
BottomLeft : Vector3,
BottomRight : Vector3,
DrawTop : ?boolean,
DrawBottom : ?boolean,
DrawLeft : ?boolean,
DrawRight : ?boolean,
}
fromInstance
BoxRailSegment.fromInstance(instance: Instance) -> BoxRailSegment
instance Children
{
Wedge : ?WedgePart,
TopLeft : Vector3OffsetInstance,
TopRight : Vector3OffsetInstance,
BottomLeft : Vector3OffsetInstance,
BottomRight : Vector3OffsetInstance,
DrawTop : ?BoolValue,
DrawBottom : ?BoolValue,
DrawLeft : ?BoolValue,
DrawRight : ?BoolValue,
}
BoxRailSegmentBuilder
Constructors
new
BoxRailSegmentBuilder.new() -> BoxRailSegmentBuilder
Methods
WithWedge
BoxRailSegmentBuilder:WithWedge(wedge : WedgePart) -> self
WithTopLeft
BoxRailSegmentBuilder:WithTopLeft(offset : Vector3) -> self
WithTopRight
BoxRailSegmentBuilder:WithTopRight(offset : Vector3) -> self
WithBottomLeft
BoxRailSegmentBuilder:WithBottomLeft(offset : Vector3) -> self
WithBottomRight
BoxRailSegmentBuilder:WithBottomRight(offset : Vector3) -> self
WithDrawTop
BoxRailSegmentBuilder:WithDrawTop(value : boolean) -> self
WithDrawBottom
BoxRailSegmentBuilder:WithDrawBottom(value : boolean) -> self
WithDrawLeft
BoxRailSegmentBuilder:WithDrawLeft(value : boolean) -> self
WithDrawRight
BoxRailSegmentBuilder:WithDrawRight(value : boolean) -> self