BaseObject class

This is the base class for all objects and includes sprites, models, actors, planes

Constructors

BaseObject()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

ray Raycaster
getter/setter pair
touchtriggerwait double
getter/setter pair

Static Methods

addTimer(dynamic obj, dynamic timer) → dynamic
Add a timer to object - record so can remove all timers if necessary
clearAll(dynamic obj) → dynamic
Clear everything for obj including timers, randomwalk, moving, text, chatter, speech, lerping
clearTimers(dynamic obj) → dynamic
Stop all of obj timers and clear them all
deselectHighLight(dynamic obj) → dynamic
set obj to be unselected and has smaller select outline
deselectHighLights() → dynamic
deselect all high lighted objects
disableDistanceTrigger(dynamic object) → dynamic
Delete the distance trigger for the object
disableTouchTrigger(dynamic object) → dynamic
Delete the touch trigger for the object
getTimers(dynamic obj) → dynamic
Get all of obj timers
hasCustomTrigger(dynamic object, dynamic name) → dynamic
Does the object have a custom trigger of name
highlight(dynamic obj, dynamic on, {dynamic scale, dynamic opacity}) → dynamic
Turn the highlight of obj on or off. Can increase the size of the highlight with scale Can change the opacity of the highlight
reenableDistanceTrigger(dynamic object) → dynamic
removeCustomTrigger(dynamic object, dynamic name) → dynamic
Remove the object custom trigger of name
setCustomTrigger(dynamic object) → dynamic
Create your own trigger for object eg npc attacked
setDistanceTrigger(dynamic object, {dynamic dist, dynamic ndist, dynamic edist, dynamic wdist, dynamic sdist, dynamic ignoreifhidden = true}) → dynamic
Set a distance trigger of object. If camera goes within the square specified by dist or the rectangle specified by ndist, sdist, edist and wdist then sets off trigger. If camera was also in the trigger distance and moves out also triggers ignoreifhidden means even if the object is invisible the trigger still operates
setHighlight(dynamic obj, dynamic parent, dynamic color, dynamic opacity, {dynamic scale = 1.05, dynamic scalex, dynamic scaley, dynamic scalez, dynamic deselectopacity, dynamic deselectscale}) → dynamic
Given an obj a select highlight and add to the scene parent with color, opacity Can set the scale of hightlight and override in different axis with scalex, scaley and scalez Can change the opacity when deselected with deselectopacity Can change the scale when deselected with deselectscale
setHighLightOpacity(dynamic obj, dynamic opacity) → dynamic
Set the opacity of obj highlight
setHighLightScale(Object3D obj, {dynamic scale = 1.05, dynamic scalex, dynamic scaley, dynamic scalez}) → dynamic
Set the scale of an obj highlight Override scale with scalex , scaley and scalez if want to scale highlight in different axis
setTouchTrigger(dynamic object) → dynamic
Set an object to have a trigger when the object is touched
setVisible(dynamic object, dynamic visible, {dynamic delay}) → dynamic
Make object visible in delay seconds
touchup(dynamic pointerdowntick, dynamic event, dynamic parent, dynamic width, dynamic height, dynamic numpoints) → dynamic
For the objects touched any then trigger the touchtrigger if they have one pointerdowntick is when the mouse was clicked so that dont trigger all the time event is the mouse position parent is the scene that check for intersections of width and height is the width and height of screen numpoints is how many spots will check for interections - this is useful if low frame rate and isn't finding touched objects - try more often if low framerate
update(dynamic frameTime) → dynamic
Check if should trigger distance triggers