Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
|
A physic object representing a rectangle created using Group::CreatePhRect. More...
#include <header.hpp>
Public Member Functions | |
Vector2D | GetSize () |
Set the size of the rectangle. | |
nil | SetSize (Vector2D size) |
Get the size of the rectangle. | |
number | GetSizeX () |
Get the X size of the rectangle. | |
number | GetSizeY () |
Get the Y size of the rectangle. | |
nil | SetSizeX (number size) |
Set the X size of the rectangle. | |
nil | SetSizeY (number size) |
Set the Y size of the rectangle. | |
Public Attributes | |
Vector2D | size |
Access the size of the rectangle. | |
float | sizeX |
Access the X size of the rectangle. | |
float | sizeY |
Access the Y size of the rectangle. |
A physic object representing a rectangle created using Group::CreatePhRect.
Vector2D PhRect::GetSize | ( | ) |
Set the size of the rectangle.
number PhRect::GetSizeX | ( | ) |
Get the X size of the rectangle.
number PhRect::GetSizeY | ( | ) |
Get the Y size of the rectangle.
nil PhRect::SetSize | ( | Vector2D | size | ) |
Get the size of the rectangle.
nil PhRect::SetSizeX | ( | number | size | ) |
Set the X size of the rectangle.
nil PhRect::SetSizeY | ( | number | size | ) |
Set the Y size of the rectangle.
Access the size of the rectangle.
float PhRect::sizeX |
Access the X size of the rectangle.
float PhRect::sizeY |
Access the Y size of the rectangle.