new Capsule( [start] [, end] [, radius])
Creates a new capsule.
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
start |
THREE.Vector3 |
<optional> |
An optional position for the center of the start hemisphere, defaults to {0,0,300}. |
|
end |
THREE.Vector3 |
<optional> |
An optional position for the center of the ending hemisphere, defaults to {0,0,1400}. |
|
radius |
number |
<optional> |
250 | An optional radius, defaults to 250. |
Members
-
:THREE.Vector3
end
-
The center of the second hemispherical end.
Type
- THREE.Vector3
-
:number
radius
-
The radius of the capsule.
Type
- number
-
:THREE.Vector3
start
-
The center of the first hemispherical end.
Type
- THREE.Vector3