d3d_model_ellipsoid

Adds an ellipsoid shape to the model.

Syntax:

d3d_model_ellipsoid(ind, x1, y1, z1, x2, y2, z2, hrepeat, vrepeat, steps)


Argument Description
ind The model index to add the ellipsoid to.
x1 The initial x coordinate of the ellipsoid.
y1 The initial y coordinate of the ellipsoid.
z1 The initial z coordinate of the ellipsoid.
x2 The opposite x coordinate of the ellipsoid.
y2 The opposite y coordinate of the ellipsoid.
z2 The opposite z coordinate of the ellipsoid.
hrepeat Amount of horizontal repetitions for the texture.
vrepeat Amount of vertical repetitions for the texture.
steps How many steps are used to make the ellipsoid "round" (typically 24)


Returns: N/A


Description

This function will add an ellipsoid of the specified size to the chosen model.


Example:

model[0] = d3d_model_create();
d3d_model_ellipsoid(model[0], -10, -10, -10, 10, 10, 50, 1, 1, 24);

The above code creates a model and adds an ellipsoid to it.


Back: 3D Models
Next: d3d_model_wall
© Copyright YoYo Games Ltd. 2018 All Rights Reserved