Table of Contents

Resource Physics

(NOTE) Represents a collection of convex meshes that was decomposed from a mesh.

Methods Properties Base Classes Derived Classes
CreateRuntime Modified Resource
RuntimeClone SubMeshes
UpdateAndNotifyIfModified Valid
Validate Vertices

Properties


Modified : boolean

read-only

Is the resource currently modified?

var Modified : Boolean

SubMeshes : multiconvexmeshsubmeshdata

read-only

A collection of sub-convex meshes.

var SubMeshes : MultiConvexMeshSubMeshData

Valid : boolean

read-only

Is the resource correctly setup? Typically involves a mis-match in indices and vertices.

var Valid : Boolean

Vertices : multiconvexmeshvertexdata

read-only

The vertex buffer data of this mesh.

var Vertices : MultiConvexMeshVertexData

Methods


CreateRuntime : multiconvexmesh

static

Creates a MultiConvexMesh for run-time modifications. |Name|Type|Description| |---|---|---|

function CreateRuntime() : MultiConvexMesh

RuntimeClone : multiconvexmesh

Creates a clone of this mesh for run-time modifications. |Name|Type|Description| |---|---|---|

function RuntimeClone() : MultiConvexMesh

UpdateAndNotifyIfModified : Void

Rebuild all extra mesh information if it is currently modified. This includes things like the center of mass, volume, aabb, edge info and more. |Name|Type|Description| |---|---|---|

function UpdateAndNotifyIfModified()

Validate : boolean

Check if the mesh is valid. Optionally throw a script exception if it is invalid. |Name|Type|Description| |---|---|---| |throwExceptionIfInvalid|boolean| |

function Validate(throwExceptionIfInvalid : Boolean) : Boolean