MouseArea:mouse_area_shape
Returns the shape of the surface that responds to the mouse.
Usage
mouse_area:mouse_area_shape()
Returns
| Name | Type | Description |
|---|---|---|
shape | love.Shape | Shape of the interactive area. |
Examples
local entity = ecs:spawn(crystal.Entity);
entity:add_component(crystal.MouseArea, love.physics.newCircleShape(10));
print(entity:mouse_area_shape():getRadius()); -- Prints "10"