The three detectors are used and compiled to give the maximum real time length of the probe trace and the origin offset, in the schematic this is the "Global Length and origin offset" node.
The detectors use their own timer with fixed and different frequencies in order not to overload the test set, they are set at frequencies much lower than the average framerate (< 15 fps).
The offset setting for the origin of the probe trace can be found in the "Origin" tab, the variables (Global Lenght) are used for the calculation of the maximum trace length and are expressed as an alpha value, and the 3 summed values must be equal to 1.
The value "Speed" is associated with the corresponding speed of change of value and is modified by the internal percentage of the alpha calculation of the sensors.
The Min/Max Lenght values are associated with the minimum and maximum offset applied to the 2 types of whiskers detectors
Detector offset allows to change the test origin point from the last test performed by the whiskers to avoid that the origin point is in a wall and to always have a correct placement in relation to the wall .
It is important to keep a relatively high test frequency (10/s) on the whiskers to avoid passing through objects.
Whiskers detector and a horizontal test from the origin of the camera trace, it allows to modify the horizontal placement of the camera, and also to place the camera outside the wall in the case of a side placement.
It works with a multitude of configurable trace spheres, and it creates a vector offset of the collisions.
The configuration of the whiskers is relatively simple, you have the size which is the radius of the trace spheres, the length of the test, the number of tests on 360°, and the frequency of the test.
Whiskers Top detector is a multiple sphere trace test for the detection of ceilings and objects above the player to create a downward offset for better visibility in closed areas.
The configuration of Top whiskers is basically the same as for horizontal whiskers, there is the test angle which is associated with the angle relative to the Top vector of the origin point.
Environment Detector makes an overlap test of the environment by voxel style, it allows to know the overall density and to change the maximum length parameters of the camera.
The environment test works in multi-test in the form of a cube subdivide, you have the total horizontal and vertical size, the number of horizontal and vertical subdivision, the offset of the origin point of the cube (the extension of the cube is from the top), the type of overlap test and the frequency of the detector.
The component allows the return of values by means of event dispatcher, this allows to control values and to carry out changes in relation to the different detectors.
Return Environnement Detector
Return Whiskers
Return Whiskers Top