ActorArgs
Index
Properties
optionalacc
Optionally set the acceleration of the actor in pixels/sec^2
optionalanchor
Optionally set the anchor for graphics in the actor
optionalangularVelocity
Optionally set the angular velocity of the actor in radians/sec (180 degrees = Math.PI radians)
optionalcollider
Optionally supply a collider for an actor, if supplied ignores any supplied width/height
optionalcollisionGroup
Optionally supply a [[CollisionGroup]]
optionalcollisionType
Optionally set the collision type
optionalcolor
Optionally set the color of an actor, only used if no graphics are present If a width/height or a radius was set a default graphic will be added
optionalcoordPlane
Optionally set the coordinate plane of the actor, default is [[CoordPlane.World]] meaning actor is subject to camera positioning
optionalheight
Optionally set the height of a box collider for the actor
optionalname
Optionally set the name of the actor, default is 'anonymous'
optionaloffset
Optionally set the anchor for graphics in the actor
optionalopacity
Optionally set the color of an actor, only used if no graphics are present If a width/height or a radius was set a default graphic will be added
optionalpos
Optionally set the (x, y) position of the actor as a vector, default is (0, 0)
optionalradius
Optionally set the radius of the circle collider for the actor
optionalrotation
Optionally se the rotation in radians (180 degrees = Math.PI radians)
optionalscale
Optionally set the scale of the actor's transform
optionalvel
Optionally set the velocity of the actor in pixels/sec
optionalvisible
Optionally set the visibility of the actor
optionalwidth
Optionally set the width of a box collider for the actor
optionalx
Optionally set the x position of the actor, default is 0
optionaly
Optionally set the y position of the actor, default is 0
optionalz
Optionally set the z index of the actor, default is 0
Actor constructor options