Flx3DModel represents a 3D model which can be added to an Flx3DScene. It is a collection of multiple Flx3DMeshes.

Constructor

@:value({ z : 0, y : 0, x : 0 })new(x:Float = 0, y:Float = 0, z:Float = 0)

Variables

@:value(0xFFFFFFFF)color:FlxColor = 0xFFFFFFFF

meshes:Map<String, Flx3DMesh>

Methods

applyMaterials(materials:Map<String, Flx3DBaseMaterial>):Void

forEachMesh(func:(name:String, mesh:Flx3DMesh) ‑> Void):Void

getMesh(id:String):Null<Flx3DMesh>

loadMeshes(source:String):Flx3DModel

Loads all meshes from the obj file.

setMesh(id:String, mesh:Flx3DMesh):Flx3DModel

Inherited Variables

Defined by Flx3DObject

@:value(new Flx3DPoint())acceleration3D:Flx3DPoint = new Flx3DPoint()

angleW:Float

angleX:Float

angleY:Float

angleZ:Float

@:value(new Flx3DPoint())angularAcceleration3D:Flx3DPoint = new Flx3DPoint()

@:value(new Flx3DPoint())angularDrag3D:Flx3DPoint = new Flx3DPoint()

@:value(new Flx3DPoint())angularMaxVelocity3D:Flx3DPoint = new Flx3DPoint()

@:value(new Flx3DPoint())angularVelocity3D:Flx3DPoint = new Flx3DPoint()

depth:Float

@:value(new Flx3DPoint())drag3D:Flx3DPoint = new Flx3DPoint()

@:value(new Flx3DPoint())maxVelocity3D:Flx3DPoint = new Flx3DPoint()

@:value(YXZ_EULER)rotationMode:Flx3DRotationMode = YXZ_EULER

@:value(new Flx3DPoint(1, 1, 1))scale:Flx3DPoint = new Flx3DPoint(1, 1, 1)

@:value(new Flx3DPoint())velocity3D:Flx3DPoint = new Flx3DPoint()

z:Float

Inherited Methods