Why the LinePickSensor in simulink 3d animation can not pick the ElevationGrid?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Why the LinePickSensor in simulink 3d animation can not pick the ElevationGrid?
The isActive is TRUE, but the pickedPoint is almost 0.
I have used LinePickSensor to pick the surface typed IndexedFaceSet. It works normally.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1355803/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1355808/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1355813/image.jpeg)
0 comentarios
Respuestas (1)
Rasmita
el 12 de Mayo de 2023
Hi,
As per my understanding, you would like to know why you are able to pick ‘IndexedFaceSet’ using ‘LinePickSensor’, but not ‘ElevationGrid’ in Simulink 3d animation.
‘LinePickSensor’ uses sets of lines that detect the distance to the colliding geometries. It may not work properly with ‘ElevationGrid’ objects because ‘ElevationGrid’ objects are defined by a grid of heights, rather than a set of surface faces. The ‘LinePickSensor’ may not be able to detect intersection with an ‘ElevationGrid’ object, or it may detect the intersection with the wrong point on the grid.
One possible solution is to use a different type of sensor that is better suited for ‘ElevationGrid’ objects, such as the ‘PointPickSensor’ or ‘PrimitivePickSensor’.
For further information, please refer to the below link:
Hope this helps!
Regards,
Rasmita
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!