Enfusion Script API
|
Geometric shapes relevant for physics simulation. More...
Public Member Functions | |
proto external void | Destroy () |
Destroys geometry. | |
Public Member Functions inherited from pointer | |
proto string | ToString () |
Static Public Member Functions | |
static proto PhysicsGeom | CreateBox (vector size) |
Creates box geometry. | |
static proto PhysicsGeom | CreateSphere (float radius) |
Creates sphere geometry. | |
static proto PhysicsGeom | CreateCapsule (float radius, float height) |
Creates capsule geometry. | |
static proto PhysicsGeom | CreateCylinder (float radius, float height) |
Creates cylinder geometry. | |
static proto PhysicsGeom | CreateTriMesh (vector vertices[], int indices[], int numVertices, int numIndices) |
Creates tri-mesh geometry. | |
Geometric shapes relevant for physics simulation.
|
static |
Creates box geometry.
size | Dimensions of the box |
|
static |
Creates capsule geometry.
radius | Radius of the cylindrical/hemispherical part |
height | Height of the cylindrical part |
|
static |
Creates cylinder geometry.
radius | Radius of the cylinder |
height | Height of the cylinder |
|
static |
Creates sphere geometry.
radius | Radius of the sphere |
|
static |
Creates tri-mesh geometry.
vertices | Set of vertices representing the geometry |
indices | Set of indices representing the geometry |
numVertices | Number of vertices |
numIndices | Number of indices |
proto external void PhysicsGeom.Destroy | ( | ) |
Destroys geometry.