Simulate documentation
Lights
Lights
class simulate.Light
< source >( intensity: float = 1.0 color: typing.Optional[typing.List[float]] = None range: typing.Optional[float] = None inner_cone_angle: typing.Union[float, numpy.ndarray] = 0.0 outer_cone_angle: typing.Union[float, numpy.ndarray] = 45.0 light_type: str = 'directional' name: typing.Optional[str] = None position: typing.Optional[typing.List[float]] = None rotation: typing.Optional[typing.List[float]] = None scaling: typing.Union[float, typing.List[float], NoneType] = None is_actor: bool = False parent: typing.Optional[ForwardRef('Asset')] = None children: typing.Optional[typing.List[ForwardRef('Asset')]] = None )
Parameters
-
intensity (
float, optional, defaults to1.0) — The intensity of the light. -
color (
List[float], optional, defaults to[1.0, 1.0, 1.0]) — The color of the light. -
range (
float, optional, defaults toNone) — The range of the light. -
inner_cone_angle (
floatornp.ndarray, optional, defaults to0.0) — The inner cone angle of the light. -
outer_cone_angle (
floatornp.ndarray, optional, defaults to45.0) — The outer cone angle of the light. -
light_type (
str, optional, defaults to"directional") — The type of the light. 2 types of punctual lights are implemented:"directional": an infinitely distant point source"positional": point sources located in the real-world. A cone angle can be defined to limit the spatial distribution of a positional light beam in which case these are often known as spotlight. a Value of None or above 90 degree means no spatial limitation.
-
name (
str, optional, defaults toNone) — The name of the light. -
position (
List[float], optional, defaults to[0.0, 0.0, 0.0]) — The position of the light. -
rotation (
List[float], optional, defaults to[0.0, 0.0, 0.0]) — The rotation of the light. -
scaling (
floatorList[float], optional, defaults to1.0) — The scaling of the light. -
is_actor (
bool, optional, defaults toFalse) — Whether the light is an actor. -
parent (
Asset, optional, defaults toNone) — The parent of the light. -
children (
List[Asset], optional, defaults toNone) — The children of the light.
A Scene Light. Punctual lights are defined as infinitely small points that emit light in well-defined directions and intensities. Angles are in degrees.
copy
< source >(
with_children: bool = True
**kwargs: typing.Any
)
→
copy (Light)
Make a copy of the Asset.
Under construction 🚧.