Drag[en]gine Script Module DragonScript Script API  1.0
ShapeList Class Reference

Shape list. More...

Inheritance diagram for ShapeList:

Public Member Functions

Constructors
ShapeList new ()
 Create shape list. More...
 
ShapeList new (ShapeList copy)
 Create copy of shape list. More...
 
Management
int getCount ()
 Number of shapes. More...
 
bool empty ()
 Has no shapes. More...
 
bool notEmpty ()
 Has shapes. More...
 
void removeAllShapes ()
 Remove all shapes. More...
 
Sphere
void addSphere (Vector position, float radius)
 Add sphere shape. More...
 
Box
void addBox (Vector center, Vector halfExtents)
 Add box shape. More...
 
void addBox (Vector center, Vector halfExtents, Quaternion orientation)
 Add box shape. More...
 
Cylinder
void addCylinder (float halfHeight, float radius)
 Add cylinder shape. More...
 
void addCylinder (float halfHeight, float radius, Vector position)
 Add cylinder shape. More...
 
void addCylinder (float halfHeight, float radius, Vector position, Quaternion orientation)
 Add cylinder shape. More...
 
void addCylinder (float halfHeight, float topRadius, float bottomRadius)
 Add tapered cylinder shape. More...
 
void addCylinder (float halfHeight, float topRadius, float bottomRadius, Vector position)
 Add tapered cylinder shape. More...
 
void addCylinder (float halfHeight, float topRadius, float bottomRadius, Vector position, Quaternion orientation)
 Add tapered cylinder shape. More...
 
void addCylinder (float halfHeight, float topRadius, float bottomRadius, Vector2 topAxisScaling, Vector2 bottomAxisScaling)
 Add tapered cylinder shape. More...
 
void addCylinder (float halfHeight, float topRadius, float bottomRadius, Vector2 topAxisScaling, Vector2 bottomAxisScaling, Vector position)
 Add tapered cylinder shape. More...
 
void addCylinder (float halfHeight, float topRadius, float bottomRadius, Vector2 topAxisScaling, Vector2 bottomAxisScaling, Vector position, Quaternion orientation)
 Add tapered cylinder shape. More...
 
Capsule
void addCapsule (float halfHeight, float radius)
 Add a capsule shape. More...
 
void addCapsule (float halfHeight, float radius, Vector position)
 Add a capsule shape. More...
 
void addCapsule (float halfHeight, float radius, Vector position, Quaternion orientation)
 Add a capsule shape. More...
 
void addCapsule (float halfHeight, float topRadius, float bottomRadius)
 Add a tapered capsule shape. More...
 
void addCapsule (float halfHeight, float topRadius, float bottomRadius, Vector position)
 Add a tapered capsule shape. More...
 
void addCapsule (float halfHeight, float topRadius, float bottomRadius, Vector position, Quaternion orientation)
 Add a tapered capsule shape. More...
 
void addCapsule (float halfHeight, float topRadius, float bottomRadius, Vector2 topAxisScaling, Vector2 bottomAxisScaling)
 Add a tapered capsule shape. More...
 
void addCapsule (float halfHeight, float topRadius, float bottomRadius, Vector2 topAxisScaling, Vector2 bottomAxisScaling, Vector position)
 Add a tapered capsule shape. More...
 
void addCapsule (float halfHeight, float topRadius, float bottomRadius, Vector2 topAxisScaling, Vector2 bottomAxisScaling, Vector position, Quaternion orientation)
 Add a tapered capsule shape. More...
 

Detailed Description

Shape list.

List of analytical shapes. Supported shapes:

  • Sphere
  • Box
  • Cylinder
  • Capsule
  • Tapered box
  • Tapered cylined
  • Tapered capsule

The shape list acts as union of all shapes.

This is a native class.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ addBox() [1/2]

void addBox ( Vector  center,
Vector  halfExtents 
)

Add box shape.

§ addBox() [2/2]

void addBox ( Vector  center,
Vector  halfExtents,
Quaternion  orientation 
)

Add box shape.

§ addCapsule() [1/9]

void addCapsule ( float  halfHeight,
float  radius 
)

Add a capsule shape.

§ addCapsule() [2/9]

void addCapsule ( float  halfHeight,
float  radius,
Vector  position 
)

Add a capsule shape.

§ addCapsule() [3/9]

void addCapsule ( float  halfHeight,
float  radius,
Vector  position,
Quaternion  orientation 
)

Add a capsule shape.

§ addCapsule() [4/9]

void addCapsule ( float  halfHeight,
float  topRadius,
float  bottomRadius 
)

Add a tapered capsule shape.

§ addCapsule() [5/9]

void addCapsule ( float  halfHeight,
float  topRadius,
float  bottomRadius,
Vector  position 
)

Add a tapered capsule shape.

§ addCapsule() [6/9]

void addCapsule ( float  halfHeight,
float  topRadius,
float  bottomRadius,
Vector  position,
Quaternion  orientation 
)

Add a tapered capsule shape.

§ addCapsule() [7/9]

void addCapsule ( float  halfHeight,
float  topRadius,
float  bottomRadius,
Vector2  topAxisScaling,
Vector2  bottomAxisScaling 
)

Add a tapered capsule shape.

§ addCapsule() [8/9]

void addCapsule ( float  halfHeight,
float  topRadius,
float  bottomRadius,
Vector2  topAxisScaling,
Vector2  bottomAxisScaling,
Vector  position 
)

Add a tapered capsule shape.

§ addCapsule() [9/9]

void addCapsule ( float  halfHeight,
float  topRadius,
float  bottomRadius,
Vector2  topAxisScaling,
Vector2  bottomAxisScaling,
Vector  position,
Quaternion  orientation 
)

Add a tapered capsule shape.

§ addCylinder() [1/9]

void addCylinder ( float  halfHeight,
float  radius 
)

Add cylinder shape.

§ addCylinder() [2/9]

void addCylinder ( float  halfHeight,
float  radius,
Vector  position 
)

Add cylinder shape.

§ addCylinder() [3/9]

void addCylinder ( float  halfHeight,
float  radius,
Vector  position,
Quaternion  orientation 
)

Add cylinder shape.

§ addCylinder() [4/9]

void addCylinder ( float  halfHeight,
float  topRadius,
float  bottomRadius 
)

Add tapered cylinder shape.

§ addCylinder() [5/9]

void addCylinder ( float  halfHeight,
float  topRadius,
float  bottomRadius,
Vector  position 
)

Add tapered cylinder shape.

§ addCylinder() [6/9]

void addCylinder ( float  halfHeight,
float  topRadius,
float  bottomRadius,
Vector  position,
Quaternion  orientation 
)

Add tapered cylinder shape.

§ addCylinder() [7/9]

void addCylinder ( float  halfHeight,
float  topRadius,
float  bottomRadius,
Vector2  topAxisScaling,
Vector2  bottomAxisScaling 
)

Add tapered cylinder shape.

§ addCylinder() [8/9]

void addCylinder ( float  halfHeight,
float  topRadius,
float  bottomRadius,
Vector2  topAxisScaling,
Vector2  bottomAxisScaling,
Vector  position 
)

Add tapered cylinder shape.

§ addCylinder() [9/9]

void addCylinder ( float  halfHeight,
float  topRadius,
float  bottomRadius,
Vector2  topAxisScaling,
Vector2  bottomAxisScaling,
Vector  position,
Quaternion  orientation 
)

Add tapered cylinder shape.

§ addSphere()

void addSphere ( Vector  position,
float  radius 
)

Add sphere shape.

§ empty()

bool empty ( )

Has no shapes.

§ getCount()

int getCount ( )

Number of shapes.

§ new() [1/2]

ShapeList new ( )

Create shape list.

§ new() [2/2]

ShapeList new ( ShapeList  copy)

Create copy of shape list.

§ notEmpty()

bool notEmpty ( )

Has shapes.

§ removeAllShapes()

void removeAllShapes ( )

Remove all shapes.


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