Table Of Contents

Previous topic

19.8. The Shape Object

Next topic

19.10. The Contact Object

This Page

19.9. The TriangleArray Object

A TriangleArray object contains an array of triangles to be used to create a TriangleMesh shape.

19.9.1. Constructor

A TriangleArray object can be constructed with PhysicsDevice.createTriangleArray.

19.9.2. Properties

19.9.2.1. vertices

Summary

Array of floating point values representing the vertices used by the triangles, there are 3 values for each vertex.

Syntax

var vertices = triangleArray.vertices;

Note

Read Only

19.9.2.2. indices

Summary

Array of integers representing the indices of the vertices used by each triangle, there are 3 values per triangle.

Syntax

var indices = triangleArray.indices;

Note

Read Only