btTriangleMesh_addTrianglesFromBuffer

A function defined in GMBullet.yy

btTriangleMesh_addTrianglesFromBuffer(triangleMesh, buffer, offset, stride, numVerts[, matrix])

Description

Adds triangles to the Bullet triangle mesh from a buffer containing vertex data.

Arguments

Name Type Description
triangleMesh Pointer A pointer to the btTriangleMesh object.
buffer Id.Buffer A buffer containing vertex data.
offset Real The offset in bytes to the start of vertex data for the first vertex.
stride Real The stride in bytes between consecutive vertices in the buffer.
numVerts Real The number of vertices to add from the buffer.
matrix Array A matrix to transform the triangles with. Defaults to an identity matrix.

Copyright © 2024, BlueBurn. Built on October 13, 2024 using GMDoc.