Package | away3d.primitives |
Class | public class CapsuleGeometry |
Inheritance | CapsuleGeometry PrimitiveBase Geometry NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only] | Geometry | ||
height : Number
The height of the capsule. | CapsuleGeometry | ||
name : String | NamedAssetBase | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
radius : Number
The radius of the capsule. | CapsuleGeometry | ||
segmentsH : uint
Defines the number of vertical segments that make up the capsule. | CapsuleGeometry | ||
segmentsW : uint
Defines the number of horizontal segments that make up the capsule. | CapsuleGeometry | ||
subGeometries : Vector.<ISubGeometry> [override] [read-only]
A collection of SubGeometry objects, each of which contain geometrical data such as vertices, normals, etc. | PrimitiveBase | ||
yUp : Boolean
Defines whether the capsule poles should lay on the Y-axis (true) or on the Z-axis (false). | CapsuleGeometry |
Method | Defined By | ||
---|---|---|---|
CapsuleGeometry(radius:Number = 50, height:Number = 100, segmentsW:uint = 16, segmentsH:uint = 12, yUp:Boolean = true)
Creates a new Capsule object. | CapsuleGeometry | ||
addSubGeometry(subGeometry:ISubGeometry):void
Adds a new SubGeometry object to the list. | Geometry | ||
applyTransformation(transform:Matrix3D):void [override]
| PrimitiveBase | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
[override]
Clones the geometry. | PrimitiveBase | ||
convertToSeparateBuffers():void
Updates the SubGeometries so all vertex data is represented in different buffers. | Geometry | ||
dispose():void
Clears all resources used by the Geometry object, including SubGeometries. | Geometry | ||
removeSubGeometry(subGeometry:ISubGeometry):void
Removes a new SubGeometry object from the list. | Geometry | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase | ||
scale(scale:Number):void [override]
Scales the geometry. | PrimitiveBase | ||
scaleUV(scaleU:Number = 1, scaleV:Number = 1):void [override]
Scales the uv coordinates (tiling)
| PrimitiveBase |
Method | Defined By | ||
---|---|---|---|
buildGeometry(target:CompactSubGeometry):void [override]
Builds the primitive's geometry when invalid. | CapsuleGeometry | ||
buildUVs(target:CompactSubGeometry):void [override]
Builds the primitive's uv coordinates when invalid. | CapsuleGeometry | ||
invalidateGeometry():void
Invalidates the primitive's geometry, causing it to be updated when requested. | PrimitiveBase | ||
invalidateUVs():void
Invalidates the primitive's uv coordinates, causing them to be updated when requested. | PrimitiveBase |
height | property |
height:Number
The height of the capsule.
public function get height():Number
public function set height(value:Number):void
radius | property |
radius:Number
The radius of the capsule.
public function get radius():Number
public function set radius(value:Number):void
segmentsH | property |
segmentsH:uint
Defines the number of vertical segments that make up the capsule. Defaults to 12.
public function get segmentsH():uint
public function set segmentsH(value:uint):void
segmentsW | property |
segmentsW:uint
Defines the number of horizontal segments that make up the capsule. Defaults to 16.
public function get segmentsW():uint
public function set segmentsW(value:uint):void
yUp | property |
yUp:Boolean
Defines whether the capsule poles should lay on the Y-axis (true) or on the Z-axis (false).
public function get yUp():Boolean
public function set yUp(value:Boolean):void
CapsuleGeometry | () | Constructor |
public function CapsuleGeometry(radius:Number = 50, height:Number = 100, segmentsW:uint = 16, segmentsH:uint = 12, yUp:Boolean = true)
Creates a new Capsule object.
Parametersradius:Number (default = 50 ) — The radius of the capsule.
| |
height:Number (default = 100 ) — The height of the capsule.
| |
segmentsW:uint (default = 16 ) — Defines the number of horizontal segments that make up the capsule. Defaults to 16.
| |
segmentsH:uint (default = 12 ) — Defines the number of vertical segments that make up the capsule. Defaults to 12.
| |
yUp:Boolean (default = true ) — Defines whether the capsule poles should lay on the Y-axis (true) or on the Z-axis (false).
|
buildGeometry | () | method |
override protected function buildGeometry(target:CompactSubGeometry):void
Builds the primitive's geometry when invalid. This method should not be called directly. The calling should be triggered by the invalidateGeometry method (and in turn by updateGeometry).
Parameters
target:CompactSubGeometry |
buildUVs | () | method |
override protected function buildUVs(target:CompactSubGeometry):void
Builds the primitive's uv coordinates when invalid. This method should not be called directly. The calling should be triggered by the invalidateUVs method (and in turn by updateUVs).
Parameters
target:CompactSubGeometry |