Table Of Contents

Previous topic

9.20. The Constraint Object

Next topic

9.22. The RayHit Object

This Page

9.21. The TriangleArray Object

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

9.21.1. Constructor

A TriangleArray object can be constructed with PhysicsDevice.createTriangleArray.

9.21.2. Properties

9.21.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

9.21.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