Adds a Collider to the world and attaches a ConvexShape. A ConvexShape is a convex hull of a set of points, kinda like if you wrapped them in wrapping paper.
Arguments
Name
Type
Default
Description
x
number
0
The x coordinate of the collider, in meters.
y
number
0
The y coordinate of the collider, in meters.
z
number
0
The z coordinate of the collider, in meters.
points
table
A list of vertices to compute a convex hull from. Can be a table of tables (each with 3 numbers) or a table of numbers (every 3 numbers form a 3D point).
The position of the center of the capsule, in meters.
points
table
A list of vertices to compute a convex hull from. Can be a table of tables (each with 3 numbers) or a table of numbers (every 3 numbers form a 3D point).
Clones an existing ConvexShape, which is faster than passing the same points multiple times. Clones can have their own scale. The clone's scale doesn't get multiplied with the scale of the template.
Clones an existing ConvexShape, which is faster than passing the same points multiple times. Clones can have their own scale. The clone's scale doesn't get multiplied with the scale of the template.
Arguments
Name
Type
Default
Description
position
vector
The position of the center of the capsule, in meters.