# Simulation > **Warning:** The functionality described in this article is not available in the Community SDK edition. > You should upgrade to [**Sim**](https://l.unigine.com/SdhugY462) SDK edition to use it. ## Crane Winch With Rope ![](../../../samples/img/csharp_sim_samples_crane_winch_with_rope.jpg) This sample shows how to create a winch system with interactive rope simulation. You can rotate the crane, adjust the rope length, change the mass of the attached load, and detach the load to observe the resulting physics behavior. Enabling the *[Visualizer](../../../api/library/engine/class.visualizer_cpp.md)* checkbox in the sample's UI displays the system's response to parameter adjustments. The rope includes an optional tension compensation feature, which helps maintain rope stability and realism under varying loads. This type of winch is suitable for simulation of helicopter operations or heavy duty equipment towing. The rope is implemented as a C++ Component that you can use in your project. **SDK Path:***/data/csharp_sim_samples/simulation/crane_winch_with_rope* ## Fisheye Camera Emulation This sample demonstrates emulation of real fisheye cameras based on the **Kannala-Brandt** panorama rendering mode. Switch between six distortion models on the fly and tune every lens parameter live � from the principal point, focal length, skew, and image circle radius to the distortion coefficients � with the result rendered directly to the main viewport. In *Physical* mode the lens is defined the way real projects do it: by its datasheet (sensor dimensions and focal length in millimeters) or by intrinsics taken from a camera calibration tool, with the pixel-space parameters derived automatically. **Key Features:** - Six distortion models: **Equidistant**, **Orthographic**, **Stereographic**, **Equisolid**, polynomial **F-Theta**, and the calibrated **Kannala-Brandt** model with tangential distortion - Full manual control of the camera intrinsics: focal length, principal point, image dimensions, skew, and image circle radius - *Physical* mode: define the lens by sensor size and focal length in millimeters (with circular or full-frame image circle fit), or feed in calibration intrinsics directly - Vignetting presets: none, natural (the sin(theta)/theta relative illumination law of an ideal fisheye), or custom polynomial coefficients - Chromatic aberration set directly or physically, via the Abbe number of the lens glass - Live readouts of the derived lens data: image circle radius in millimeters, minimum focal length, and the model monotonicity limit. **Use Cases:** - Sensor-accurate camera simulation for autonomous driving, robotics, and drones - Matching synthetic imagery to a real calibrated camera to close the sim-to-real gap - Prototyping and validating lens configurations before committing to hardware. **SDK Path:***/data/csharp_sim_samples/simulation/fisheye_sample* ## Floating Buoy This sample demonstrates realistic water interaction in UNIGINE, showcasing both the current state of **[Global Water](../../../objects/objects/water/water_object.md)** control via changing **[Beaufort](../../../objects/objects/water/water_object.md#creating_waves)** levels and the use of fetching the water level at a certain point for a simplified simulation of buoyancy without using physics. **Core Features:** **Global Water Control.** Adjust ocean conditions in real-time using the **Beaufort slider** (0-12). Higher values create stormier waves with enhanced foam and detail. **Optimized Buoyancy System**. Simulates floating objects without full physics collisions. Uses three anchor points for stable wave-following behavior. It then smoothly adjusts the object's position and rotation to match the waves, with calculations based on: - Object mass (customizable) - Global buoyancy coefficient (adjustable via **Buoyancy slider**) - Water surface steepness and wave height. **Use Cases:** - Marine simulations - Weather system prototyping - Performance-sensitive scenes with many floating objects - Games needing stylized water interactions. **SDK Path:***/data/csharp_sim_samples/simulation/floating_buoy* ## LiDAR Sensor Emulation ![](../../../samples/img/csharp_sim_samples_lidar_sensor_emulation.jpg) This sample demonstrates a realistic **LiDAR** sensor simulation, used in self-driving cars, robotics, robot vacuum cleaners, and drones to map their surroundings. It works by combining four (or optionally more) virtual depth cameras to create a full 360-degree scan. The **LiDAR** emits rays and measures distances by rendering a depth map of the environment. In addition, a response intensity for each ray is calculated using normal, roughness and metalness from the G-buffer. You can tweak its settings (scan range, FOV, resolution, etc.) via API. **Key Features:** - Emulated LiDAR using 4 or more rendered views - Configurable **min/max range, FOV, beam resolution** (number of stacks and slices) - Asynchronous data transfer using *[asyncTransferTextureToImage](../../../api/library/rendering/class.render_cpp.md#asyncTransferTextureToImage_TextureToImageTransfered_TextureToImageTransfered_Texture_void)* - Dynamic beam caching, image post-processing, and world-space point rendering - Optional visual debugging: depth maps, scan points, and frustums - Auto-refreshing system with internal transform and scan updates. **Use Cases:** - Autonomous vehicle simulation (robot vacuums, drones, cars) - Autopilot and AI training using virtual LiDAR input - Robot navigation and localization (SLAM, path planning). **SDK Path:***/data/csharp_sim_samples/simulation/lidar_sensor_emulation* ## Robot Arm Manipulator ![](../../../samples/img/csharp_sim_samples_robot_arm_manipulator.jpg) This sample demonstrates how to build a physics-based robotic arm with a kinematic chain composed of six links: one fixed and five movable. Each movable link is connected via a hinge joint (*[JointHinge](../../../principles/physics/joints/index.md#hinge)*) and driven by a motor that responds to keyboard inputs. The arm's **end effector** is a **magnetic gripper** capable of **grabbing, holding, and releasing** dynamic objects in its environment. The gripper and each joint can be controlled independently via key bindings, which are configurable and demonstrated in the *Controls* section. This setup provides a flexible starting point for creating custom robotic arms with any required number of degrees of freedom (DoF). You can replace manual input with a control system (e.g., inverse kinematics, AI, joystick, or ROS integration) to adapt the robot arm to your specific use case. **Use Cases:** - **Simulation & prototyping** of industrial robotic manipulators. - **Educational environments** to teach principles of robotics, joint control, or physics-based animation. - **AI training** for robotic arms using reinforcement learning or motion planning. - **Human-machine interfaces**: test robotic interaction with dynamic environments. - **Virtual reality** robotics simulations or operator training. **SDK Path:***/data/csharp_sim_samples/simulation/robot_arm_manipulator* ## Segmentation This sample shows how to build **segmentation masks** using the **SurfaceID** buffer, which stores the identifiers of nodes and materials together with the custom parameters you assign to surfaces and materials yourself. Segmentation masks can be used to isolate the surfaces sharing the same value, for example for training and validating perception systems. A mask is produced by a postprocess material that takes one value out of the **SurfaceID** buffer for every pixel, turns it into a color, and renders it into a texture shown in one of the seven **WidgetSprite** views. Surfaces sharing a value share a color, and untagged surfaces stay black. The views demonstrate how scene objects can be tagged by different criteria: - **Node ID** and **Material ID** - the identifiers written by the Engine itself. Every node gets a color of its own, while objects sharing a material share a color. - **Custom Surface Param** views - a custom parameter set per surface: the primitives of one kind (e.g., boxes) in the scene share the same value, regardless of the material each of them uses. Each of the four views reads a different **layer** of the buffer: **Scene** shows the combined result, while the other three show only opaque geometry, only transparent geometry, and only decals. With *Multilayered* disabled, the nearest surface overwrites the rest, and the **Transparent** and **Decal** views stay empty. - **Custom Material Param** - a custom parameter set per material: each material ball in the scene is built of two surfaces sharing a single material, so all the surfaces using this material resolve to a single color in the mask, while a surface parameter would color just one of them. Toggling *Multilayered* recompiles the shaders, and the sample waits for the recompilation to finish before drawing the next frame. The *Status* box describes the surface the sliders are applied to: the ID of its material, which parameters have been given a value on it instead of the default one, and how many bytes one surface takes up in the parameter buffer. The scene itself is rendered once. For opaque geometry the **SurfaceID** values are one of the G-buffer targets, filled by the same pass that writes albedo, normals, and velocity, so the seven views only read what is already there and no geometry is drawn again for any of them. The postprocess materials are built as **[material graphs](../../...md)**. To get the value it has to visualize, each material fetches it from the **SurfaceID** buffer with one of these nodes: - *Surface Parameters* - used by six of the materials. It can return the node ID, the material ID, or the custom surface parameter, and its *Type* option chooses the layer to read from: **Scene**, **Opaque**, **Transparent**, or **Decal**. - *Material Parameters* - used by the seventh one, returning the value stored in the material. The value is then turned into a color: the **Node ID** material does it with the *Id To Color* node, which spreads neighboring identifiers into visually distinct colors, and the other six multiply the value by a color and wrap the result with the *Frac* node. A custom surface parameter is stored per surface, outside the material, while a custom material parameter is stored in the material itself and applies to every surface using it. Neither of them clones the material or recompiles shaders, so objects with different values keep sharing one material and stay in the same draw call. The **SegmentationRenderViewports** component subscribes to the *Begin Post Materials* render event and, for every view listed in its *Viewports* array, renders the assigned postprocess material to a temporary texture, copies the result into a texture of the view size, and displays it in a **WidgetSprite**. The *Layout* group of the component defines the size of a view, the position of the grid, the number of columns, the spacing, and whether the titles are shown. The surface the sliders are applied to is set by the *Target* and *Surface* parameters of the **SegmentationSample** component in UnigineEditor. **SDK Path:***/data/csharp_sim_samples/simulation/segmentation* ## Ship Buoyancy (Physical) This sample demonstrates how to implement **physically accurate buoyancy** for dynamic objects floating on **[Global Water](../../../objects/objects/water/water_object.md)**. A physical body is divided into a grid of virtual volume elements, each sampled independently for water height. Based on how much of each cell is submerged, the system: - Calculates and applies distributed **buoyant forces** - Adds appropriate **torque** to simulate rotation - Applies **linear and angular damping** depending on submerged volume. You can also define a **custom center of mass**, and optionally enable **debug visualization** of submerged sections, force directions, and sampling points via API. Use the **[Beaufort](../../../objects/objects/water/water_object.md#creating_waves)** slider parameter to adjust the wave intensity of the **[Global Water](../../../objects/objects/water/water_object.md)** object. This approach is useful for games and simulators involving boats, ships, debris, or physics-based water interactions. **SDK Path:***/data/csharp_sim_samples/simulation/ship_buoyancy_physical* ## Thermal Sensor Emulation ![](../../../samples/img/csharp_sim_samples_thermal_sensor_emulation.jpg) The sample demonstrates the use of **[post_sensor](../../../content/materials/library/postprocess/post_sensor/index.md)** postprocess materials for meshes and decals to create the effects for real-time sensor simulation of optical sensors in the EO (Electro-Optical) or IR (Infrared) passband (thermal, enhanced night vision, Forward-Looking Infrared (FLIR)). For detailed information about each effect, refer to the descriptions on the plates in the scene. **SDK Path:***/data/csharp_sim_samples/simulation/thermal_sensor_emulation*