LS.SpatialContainer Class
This class allows to store data spatially so it can be retrieved by proximity or by camera frustum view. It can store objects associated with a bounding box. It is used by the renderer to store all the RenderInstances, Lights and Colliders IT IS A WORK IN PROGRESS SO FOR NOW IT DO NOT STORES THE INFO SPATIALLY, IT JUST EXPOSES AN INTERFACE
Item Index
Methods
Methods
getCurveValueAt
(
Number
-
values
-
minx
-
maxx
-
defaulty
-
x
Samples a curve and returns the resulting value
Parameters:
-
values
Array -
minx
Numbermin x value
-
maxx
Numbermax x value
-
defaulty
Numberdefault y value
-
x
Numberthe position in the curve to sample
Returns:
Number:
resampleCurve
(
Array
-
values
-
minx
-
maxx
-
defaulty
-
numsamples
Resamples a full curve in values (useful to upload to GPU array)
Parameters:
-
values
Array -
minx
Numbermin x value
-
maxx
Numbermax x value
-
defaulty
Numberdefault y value
-
numsamples
Number
Returns:
Array: