Function createScreenSpaceEntity
- createScreenSpaceEntity(app?): {
addObject: ((obj, pixel?) => void);
dispose: (() => void);
entity: Entity;
group: Group<Object3DEventMap>;
pixelHeightToLength: ((pixelHeight) => number);
pixelToPosition: ((pixel) => Vector3);
} Returns {
addObject: ((obj, pixel?) => void);
dispose: (() => void);
entity: Entity;
group: Group<Object3DEventMap>;
pixelHeightToLength: ((pixelHeight) => number);
pixelToPosition: ((pixel) => Vector3);
}
addObject: ((obj, pixel?) => void)
- (obj, pixel?): void
Parameters
obj: Object3D<Object3DEventMap>
Optional
pixel: [number, number]
Returns void
dispose: (() => void)
group: Group<Object3DEventMap>
pixelHeightToLength: ((pixelHeight) => number)
- (pixelHeight): number
Returns number
pixelToPosition: ((pixel) => Vector3)
- (pixel): Vector3
Returns Vector3
创建一个屏幕位置空间的实体对象