Flx3DScene is an FlxSprite which a 3D scene is rendered onto. This is the main way to use Flixel3D.

Constructor

@:value({ maxSize : 0, height : -1, width : -1, y : 0, x : 0 })new(x:Float = 0, y:Float = 0, width:Int = -1, height:Int = -1, maxSize:Int = 0)

Parameters:

x

The initial X position of the sprite.

y

The initial Y position of the sprite.

width

Desired width of the framebuffer.

height

Desired height of the framebuffer.

maxSize

Maximum amount of members allowed in the objects group.

Variables

bgColor:FlxColor

The 3D scene's clear colour.

camera3D:Flx3DCamera

The 3D scene's camera.

read onlyobjects:Flx3DSceneContainer

An FlxContainer containing all of the objects in the scene. (Dev note: should this be renamed?)

Methods

draw():Void

Automatically goes through and calls render on everything you added.

resize(width:Int, height:Int):Void

Changes the size of the view.