Changeset View
Changeset View
Standalone View
Standalone View
doc/python_api/rst/bge_types/bge.types.KX_VertexProxy.rst
| Show All 11 Lines | .. class:: KX_VertexProxy(SCA_IObject) | ||||
| Note: | Note: | ||||
| The physics simulation is NOT currently updated - physics will not respond | The physics simulation is NOT currently updated - physics will not respond | ||||
| to changes in the vertex position. | to changes in the vertex position. | ||||
| .. attribute:: XYZ | .. attribute:: XYZ | ||||
| The position of the vertex. | The position of the vertex. | ||||
| :type: list [x, y, z] | :type: Vector((x, y, z)) | ||||
| .. attribute:: UV | .. attribute:: UV | ||||
| The texture coordinates of the vertex. | The texture coordinates of the vertex. | ||||
| :type: list [u, v] | :type: Vector((u, v)) | ||||
| .. attribute:: normal | .. attribute:: normal | ||||
| The normal of the vertex. | The normal of the vertex. | ||||
| :type: list [nx, ny, nz] | :type: Vector((nx, ny, nz)) | ||||
| .. attribute:: color | .. attribute:: color | ||||
| The color of the vertex. | The color of the vertex. | ||||
| :type: list [r, g, b, a] | :type: Vector((r, g, b, a)) | ||||
| Black = [0.0, 0.0, 0.0, 1.0], White = [1.0, 1.0, 1.0, 1.0] | Black = [0.0, 0.0, 0.0, 1.0], White = [1.0, 1.0, 1.0, 1.0] | ||||
| .. attribute:: x | .. attribute:: x | ||||
| The x coordinate of the vertex. | The x coordinate of the vertex. | ||||
| :type: float | :type: float | ||||
| ▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | .. attribute:: a | ||||
| :type: float | :type: float | ||||
| .. method:: getXYZ() | .. method:: getXYZ() | ||||
| Gets the position of this vertex. | Gets the position of this vertex. | ||||
| :return: this vertexes position in local coordinates. | :return: this vertexes position in local coordinates. | ||||
| :rtype: list [x, y, z] | :rtype: Vector((x, y, z)) | ||||
| .. method:: setXYZ(pos) | .. method:: setXYZ(pos) | ||||
| Sets the position of this vertex. | Sets the position of this vertex. | ||||
| :type: list [x, y, z] | :type: Vector((x, y, z)) | ||||
| :arg pos: the new position for this vertex in local coordinates. | :arg pos: the new position for this vertex in local coordinates. | ||||
| .. method:: getUV() | .. method:: getUV() | ||||
| Gets the UV (texture) coordinates of this vertex. | Gets the UV (texture) coordinates of this vertex. | ||||
| :return: this vertexes UV (texture) coordinates. | :return: this vertexes UV (texture) coordinates. | ||||
| :rtype: list [u, v] | :rtype: Vector((u, v)) | ||||
| .. method:: setUV(uv) | .. method:: setUV(uv) | ||||
| Sets the UV (texture) coordinates of this vertex. | Sets the UV (texture) coordinates of this vertex. | ||||
| :type: list [u, v] | :type: Vector((u, v)) | ||||
| .. method:: getUV2() | .. method:: getUV2() | ||||
| Gets the 2nd UV (texture) coordinates of this vertex. | Gets the 2nd UV (texture) coordinates of this vertex. | ||||
| :return: this vertexes UV (texture) coordinates. | :return: this vertexes UV (texture) coordinates. | ||||
| :rtype: list [u, v] | :rtype: Vector((u, v)) | ||||
| .. method:: setUV2(uv, unit) | .. method:: setUV2(uv, unit) | ||||
| Sets the 2nd UV (texture) coordinates of this vertex. | Sets the 2nd UV (texture) coordinates of this vertex. | ||||
| :type: list [u, v] | :type: Vector((u, v)) | ||||
| :arg unit: optional argument, FLAT==1, SECOND_UV==2, defaults to SECOND_UV | :arg unit: optional argument, FLAT==1, SECOND_UV==2, defaults to SECOND_UV | ||||
| :arg unit: integer | :arg unit: integer | ||||
| .. method:: getRGBA() | .. method:: getRGBA() | ||||
| Gets the color of this vertex. | Gets the color of this vertex. | ||||
| Show All 36 Lines | .. method:: setRGBA(col) | ||||
| :arg col: the new color of this vertex in packed RGBA format. | :arg col: the new color of this vertex in packed RGBA format. | ||||
| :type col: integer or list [r, g, b, a] | :type col: integer or list [r, g, b, a] | ||||
| .. method:: getNormal() | .. method:: getNormal() | ||||
| Gets the normal vector of this vertex. | Gets the normal vector of this vertex. | ||||
| :return: normalized normal vector. | :return: normalized normal vector. | ||||
| :rtype: list [nx, ny, nz] | :rtype: Vector((nx, ny, nz)) | ||||
| .. method:: setNormal(normal) | .. method:: setNormal(normal) | ||||
| Sets the normal vector of this vertex. | Sets the normal vector of this vertex. | ||||
| :type: sequence of floats [r, g, b] | :type: sequence of floats [r, g, b] | ||||
| :arg normal: the new normal of this vertex. | :arg normal: the new normal of this vertex. | ||||