Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
PhysicsGeom Interface Reference

Geometric shapes relevant for physics simulation. More...

Inheritance diagram for PhysicsGeom:
[legend]

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.
 

Detailed Description

Geometric shapes relevant for physics simulation.

Member Function Documentation

◆ CreateBox()

static proto PhysicsGeom PhysicsGeom.CreateBox ( vector  size)
static

Creates box geometry.

Geometric shapes relevant for physics simulation.
Definition: PhysicsGeom.c:16
static proto PhysicsGeom CreateBox(vector size)
Creates box geometry.
Parameters
sizeDimensions of the box

◆ CreateCapsule()

static proto PhysicsGeom PhysicsGeom.CreateCapsule ( float  radius,
float  height 
)
static

Creates capsule geometry.

static proto PhysicsGeom CreateCapsule(float radius, float height)
Creates capsule geometry.
Parameters
radiusRadius of the cylindrical/hemispherical part
heightHeight of the cylindrical part

◆ CreateCylinder()

static proto PhysicsGeom PhysicsGeom.CreateCylinder ( float  radius,
float  height 
)
static

Creates cylinder geometry.

static proto PhysicsGeom CreateCylinder(float radius, float height)
Creates cylinder geometry.
Parameters
radiusRadius of the cylinder
heightHeight of the cylinder

◆ CreateSphere()

static proto PhysicsGeom PhysicsGeom.CreateSphere ( float  radius)
static

Creates sphere geometry.

static proto PhysicsGeom CreateSphere(float radius)
Creates sphere geometry.
Parameters
radiusRadius of the sphere

◆ CreateTriMesh()

static proto PhysicsGeom PhysicsGeom.CreateTriMesh ( vector  vertices[],
int  indices[],
int  numVertices,
int  numIndices 
)
static

Creates tri-mesh geometry.

const int numVerts = 4;
const int numInds = 12;
vector verts[numVerts] = { "0 0 0", "1 0 0", "0 0 1", "0 1 0" };
int inds[numInds] = { 0, 1, 2, 0, 3, 1, 3, 2, 1, 0, 2, 3 };
PhysicsGeom geom = PhysicsGeom.CreateTriMesh(verts, inds, numVerts, numInds);
static proto PhysicsGeom CreateTriMesh(vector vertices[], int indices[], int numVertices, int numIndices)
Creates tri-mesh geometry.
Definition: vector.c:13
Parameters
verticesSet of vertices representing the geometry
indicesSet of indices representing the geometry
numVerticesNumber of vertices
numIndicesNumber of indices

◆ Destroy()

proto external void PhysicsGeom.Destroy ( )

Destroys geometry.


The documentation for this interface was generated from the following file: