Options for SphereShape
const options: SphereShapeOptions = { radius: 0.5, shell: true };const blast = new SphereShape(options); Copy
const options: SphereShapeOptions = { radius: 0.5, shell: true };const blast = new SphereShape(options);
Optional
Sphere radius. 0 gives a point source firing in every direction
1 Copy
1
const pop = new SphereShape({ radius: 0 }); Copy
const pop = new SphereShape({ radius: 0 });
Spawn only on the surface instead of throughout the volume
false Copy
false
const bubble = new SphereShape({ radius: 2, shell: true }); Copy
const bubble = new SphereShape({ radius: 2, shell: true });
Options for SphereShape
Example