Options
All
  • Public
  • Public/Protected
  • All
Menu

Class capsule

基础几何,胶囊体

Hierarchy

  • capsule

Index

Constructors

constructor

  • newcapsule(radius?: number, halfHeight?: number, axis?: number): capsule
  • Parameters

    • Default value radius: number = 0.5
    • Default value halfHeight: number = 0.5
    • Default value axis: number = 1

    Returns capsule

Properties

Protected _type

_type: number

axis

axis: number

胶囊体的朝向,映射关系 [0,1,2] => [x,y,z]

center

center: Vec3

ellipseCenter0

ellipseCenter0: Vec3

cache, local center of ellipse

ellipseCenter1

ellipseCenter1: Vec3

halfHeight

halfHeight: number

胶囊体中心点和球部圆心的距离

radius

radius: number

胶囊体球部半径

rotation

rotation: Quat

Methods

transform

updateCache

  • updateCache(): void
  • Returns void

updateLocalCenter

  • updateLocalCenter(): void
  • Returns void

Generated using TypeDoc