Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
|
A physic object representing an user shape created using Group::CreatePhShape. More...
#include <header.hpp>
Public Member Functions | |
Vector2D | GetPoint (number nb) |
Get the point nb of the shape. | |
nil | SetPoint (number nb, Vector2D pt) |
Set the point nb of the shape. | |
nil | AddPoint (Vector2D pt) |
Add a point to the shape. | |
nil | RemovePoint (number nb) |
Remove the point nb from the shape. | |
PhShape | Clone () |
Create a clone of the object and return an handler to the clone. | |
PhShape | CloneToGroup (Group newParent) |
Create a clone of the object, change the parent and return an handler to the clone. |
A physic object representing an user shape created using Group::CreatePhShape.
nil PhShape::AddPoint | ( | Vector2D | pt | ) |
Add a point to the shape.
PhShape PhShape::Clone | ( | ) |
Create a clone of the object and return an handler to the clone.
Reimplemented from Object.
Create a clone of the object, change the parent and return an handler to the clone.
Reimplemented from Object.
Vector2D PhShape::GetPoint | ( | number | nb | ) |
Get the point nb of the shape.
nil PhShape::RemovePoint | ( | number | nb | ) |
Remove the point nb from the shape.
nil PhShape::SetPoint | ( | number | nb, |
Vector2D | pt | ||
) |
Set the point nb of the shape.