ss = physics.SegmentShape(body, a, b, radius)
|
Parameter |
Type |
Description |
|---|---|---|
|
body |
in physics.Body |
A Body or nil |
|
a |
in physics.Vect |
The first end point of the segment. The end point is in coordinates relative to the Body |
|
b |
in physics.Vect |
The second end point of the
segment relative to the |
|
radius |
in number |
The distance of the border of the segment from the line between the end points of the segment |
|
ss |
out physics.SegmentShape |
A new SegmentShape |
Returns a new SegmentShape with end point vectors a and b. radius defines the thickness of the segment.
Introduced in platform.apiLevel = '2.0'