class com.babylonhx.mesh.AbstractMesh extends Node implements IDisposable
Available on all platforms
Sub classes | ||||||
![]() | InstancedMesh, Mesh |
|
... @author Krtolica Vujadin
Class Fields
Instance Fields
function calcMovePOV(amountRight:Float, amountUp:Float, amountForward:Float):Vector3
Calculate relative position change from the point of view of behind the front of the mesh. This is performed taking into account the meshes current rotation, so you do not have to care. Supports definition of mesh facing forward or backward.
{number} | amountRight |
{number} | amountUp |
{number} | amountForward |
function calcRotatePOV(flipBack:Float, twirlClockwise:Float, tiltRight:Float):Vector3
Calculate relative rotation change from the point of view of behind the front of the mesh. Supports definition of mesh facing forward or backward.
{number} | flipBack |
{number} | twirlClockwise |
{number} | tiltRight |
function createOrUpdateSubmeshesOctree(?maxCapacity:Int, ?maxDepth:Int):Octree<SubMesh>
This function will create an octree to help select the right submeshes for rendering, picking and collisions Please note that you must have a decent number of submeshes to get performance improvements when using octree
function movePOV(amountRight:Float, amountUp:Float, amountForward:Float):Void
Perform relative position change from the point of view of behind the front of the mesh. This is performed taking into account the meshes current rotation, so you do not have to care. Supports definition of mesh facing forward or backward.
{number} | amountRight |
{number} | amountUp |
{number} | amountForward |
function registerAfterWorldMatrixUpdate(func:AbstractMesh ->Void):Void
If you'd like to be callbacked after the mesh position, rotation or scaling has been updated
func: | callback function to add |