d3d_model_cone(ind, x1, y1, z1, x2, y2, z2, hrepeat, vrepeat, closed, steps)
| Argument | Description |
|---|---|
| ind | The model index to add the cone to. |
| x1 | The model index to add the cone to. |
| y1 | The initial y coordinate of the cone. |
| z1 | The initial z coordinate of the cone. |
| x2 | The opposite x coordinate of the cone. |
| y2 | The opposite y coordinate of the cone. |
| z2 | The opposite z coordinate of the cone. |
| hrepeat | Amount of horizontal repetitions for the texture. |
| vrepeat | Amount of vertical repetitions for the texture. |
| closed | Sets whether to close (true) the bottom of the cone or not (false). |
| steps | How many steps are used to make the cone "round" (typically 24) |
Returns: N/A
This function will add a cone of the specified size to the
chosen model.
model[0] = d3d_model_create();
d3d_model_cone(model[0], -10, -10, -10, 10, 10, 50, 1, 1, true,
24);
The above code creates a model and adds a cone to it.