Optional
accOptionally set the acceleration of the actor in pixels/sec^2
Optional
anchorOptionally set the anchor for graphics in the actor
Optional
angularOptionally set the angular velocity of the actor in radians/sec (180 degrees = Math.PI radians)
Optional
colliderOptionally supply a collider for an actor, if supplied ignores any supplied width/height
Optional
collisionOptionally suppy a CollisionGroup
Optional
collisionOptionally set the collision type
Optional
colorOptionally 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
Optional
coordOptionally set the coordinate plane of the actor, default is CoordPlane.World meaning actor is subject to camera positioning
Optional
heightOptionally set the height of a box collider for the actor
Optional
nameOptionally set the name of the actor, default is 'anonymous'
Optional
posOptionally set the (x, y) position of the actor as a vector, default is (0, 0)
Optional
radiusOptionally set the radius of the circle collider for the actor
Optional
rotationOptionally se the rotation in radians (180 degrees = Math.PI radians)
Optional
scaleOptionally set the scale of the actor's transform
Optional
velOptionally set the velocity of the actor in pixels/sec
Optional
visibleOptionally set the visibility of the actor
Optional
widthOptionally set the width of a box collider for the actor
Optional
xOptionally set the x position of the actor, default is 0
Optional
yOptionally set the y position of the actor, default is 0
Optional
zOptionally set the z index of the actor, default is 0
Actor contructor options