SurfaceEntity.Shape.Sphere


public final class SurfaceEntity.Shape.Sphere implements SurfaceEntity.Shape


cal An inwards-facing sphere-shaped mesh, centered at (0,0,0) in the local coordinate space. This is intended to be used by setting the entity's pose to the user's head pose. Radius is represented in the local spatial coordinate system of the entity. The center of the Surface will be mapped to (0, 0, -radius) in the local coordinate space, and texture coordinate UVs are applied from positive X to negative X in an equirectangular projection. This means that if this Entity is set to the user's head pose, then they will be looking at the center of the video if it were viewed in a 2D player.

Summary

Public constructors

Sphere(float radius)

Public methods

final float

The radius of the sphere in the local spatial coordinate system of the entity.

Public constructors

Sphere

Added in 1.0.0-alpha07
public Sphere(float radius)

Public methods

getRadius

Added in 1.0.0-alpha07
public final float getRadius()

The radius of the sphere in the local spatial coordinate system of the entity.