Resource
Physics
(NOTE) Base class of mesh type physics resources. Stores the actual mesh (no optimization structures) and information about the mesh such as mass and inertia.
Methods | Properties | Base Classes | Derived Classes |
---|---|---|---|
UpdateAndNotifyIfModified | Indices | Resource | convexmesh |
Validate | Vertices | physicsmesh |
Properties
Indices : physicsmeshindexdata
read-only
The index buffer data of this mesh.
var Indices : PhysicsMeshIndexData
Vertices : physicsmeshvertexdata
read-only
The vertex buffer data of this mesh.
var Vertices : PhysicsMeshVertexData
Methods
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 (some derived types may have a mid-phase, etc...) |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