Open Chenskkk opened 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
if you wanna use linetrace interact with physics material. As I remeber, you need to manualy set collision params ,something like "complex physics" or others. I mean ,by defualt, Linetrace will not return what physics material it hit, because it takes extra cost.
CARLA version: 0.9.13
Platform/OS: Ubuntu 18.04
Problem: I'm trying to get the surface material of the object hit by each laser point (ray_cast), and use this info to generate intensities of laser points.
First, I set
bReturnPhysicalMaterial=true
, and then useEPhysicalSurface physType = UPhysicalMaterial::GetPhysicsMaterial(HitResult);
to get Surface Material, but every point returned zero.I'm wondering that