Constrains an Entity to a circle
Constructor
new (center:Vec2, angle:Float, radius:Float, match_angle:Bool = true)
Create a new constraint that will place an object on the given angle of a circle with a given radius
Parameters:
center | the center point of the circle |
---|---|
angle | the angle at which to place the entity |
radius | the radius of the circle |
match_angle | whether or not to update the entity's angle to match it's relation to the center |
Variables
Methods
inlineupdate_angle (a:Float):Void
Update the position of the Entity using a given angle
Parameters:
a | angle |
---|
update_position (angle:Float, radius:Float):Void
Update the position of the Entity using a given angle and radius
Parameters:
angle | |
---|---|
null | radius |
inlineupdate_radius (r:Float):Void
Update the position of the Entity using a given radius
Parameters:
r | radius |
---|