Single ray of light that sweeps around its centre, and that becomes visible only after an optional photo-start delay.
More...
|
| | RotatingRayOfLightObject (float x, float y, ObjectGeometry &geom, LightLevelMap *light_map, int16_t value, float ray_half_width=0.1f, float angular_speed=3.0f, float photo_start_at=-1.0f, float photo_start_dur=1.0f, float _white_frame_dur=1.0f, int16_t _white_frame_val=32767, std::string const &category="objects") |
| | RotatingRayOfLightObject (Simulation *simulation, float x, float y, LightLevelMap *light_map, Configuration const &config, std::string const &category="objects") |
| void | render (SDL_Renderer *, b2WorldId) const override |
| | Renders the object on the given SDL renderer.
|
| void | update_light_map (LightLevelMap &l) |
| void | launch_user_step (float t) override |
| | Launches the user-defined step function.
|
| | Object (float _x, float _y, ObjectGeometry &_geom, std::string const &_category="objects") |
| | Constructs an Object.
|
| | Object (Simulation *simulation, float _x, float _y, Configuration const &config, std::string const &_category="objects") |
| | Constructs an Object from a configuration entry.
|
| virtual | ~Object () |
| | Destructor.
|
| ObjectGeometry * | get_geometry () |
| | Return the object's geometry.
|
| virtual void | move (float x, float y, float theta=NAN) |
| | Move the object to a given coordinate.
|
| virtual bool | is_tangible () const |
| | Returns whether this object is tangible (e.g. collisions, etc) or not.
|
| virtual arena_polygons_t | generate_contours (std::size_t points_per_contour=0) const |
| | Return one or more polygonal contours that represent the geometry of the object.
|
Single ray of light that sweeps around its centre, and that becomes visible only after an optional photo-start delay.
The object overwrites each covered light-map bin with either value (inside the ray) or 0 (outside the ray) via LightLevelMap::set_light_level().
- Parameters
-
| angular_speed | Sweep speed in rad · s⁻¹ (default = 3). |
| ray_half_width | Half the angular aperture of the ray in radians (default ≈ 5.7 ° = 0.1 rad). |