- createNewObject(__namedParameters, pebbleScene): Promise<BaseObject<any>>
Parameters
__namedParameters: {
Prefab: typeof BaseObject;
initialProps: any;
name?: string;
threeObj?: {
position: Vector3;
rotation: Vector3;
scale: Vector3;
};
}
initialProps: any
Optional
name?: string
Optional
threeObj?: {
position: Vector3;
rotation: Vector3;
scale: Vector3;
}
position: Vector3
rotation: Vector3
scale: Vector3
Returns Promise<BaseObject<any>>