X position of the area
Y position of the area
Width of the area
Height of the area
An array of PhysicsBodies, with Hitboxes attached to them, to check for when it leaves/enters the area
Game instance
Scene instance
What the GameObject collides with
X position
Y position
Width of the bounds
Height of the bounds
The target velocity
The value to increase the velocity by
The value to decrease the velocity by
The Vector2 to add to the velocity by
PhysicsBody to check
PhysicsBody to detach
PhysicsBody to detach from
PhysicsBody to check their hitbox with
Scale Vector2, x is width, y is height
The type of the PhysicsBody, 'KinematicBody' | 'RigidBody' | 'StaticBody'
The axis to set the velocity of
The value to set the velocity axis as, in pixels per second
The value to set the velocity axis as, in pixels per second
The value to set the velocity.y as, in pixels per second
Generated using TypeDoc
Creates a DuckEngine Area
The Area Class. Detects Hitboxes entering and leaving an area
2.0.0