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