Options
All
  • Public
  • Public/Protected
  • All
Menu

Class capsule

Basic Geometry: capsule.

Hierarchy

Index

Constructors

constructor

  • newCapsule(radius?: number, halfHeight?: number, axis?: number): capsule

Properties

Protected Readonly _type

_type: number

axis

axis: number

Local orientation of capsule [0,1,2] => [x,y,z].

Readonly center

center: Vec3

The origin of the capsule.

Readonly ellipseCenter0

ellipseCenter0: Vec3

cache, local center of ellipse

Readonly ellipseCenter1

ellipseCenter1: Vec3

halfHeight

halfHeight: number

The distance between the center point of the capsule and the center of the sphere.

radius

radius: number

Capsule sphere radius.

Readonly rotation

rotation: Quat

The rotation of the capsule.

Accessors

type

  • get type(): number

Methods

transform

updateCache

  • updateCache(): void

updateLocalCenter

  • updateLocalCenter(): void

Generated using TypeDoc