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:
-
valuesArray -
minxNumbermin x value
-
maxxNumbermax x value
-
defaultyNumberdefault y value
-
xNumberthe 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:
-
valuesArray -
minxNumbermin x value
-
maxxNumbermax x value
-
defaultyNumberdefault y value
-
numsamplesNumber
Returns:
Array:
