Jump to content

Friction on landscape and decal meshes


photo

Recommended Posts

Hello!

I'm trying to figure out if there is some friction parameters available on landscape and decal meshes. I'm using an ObjectLandscapeTerrain node with its layers and projecting decal meshes as roads ontop the landscape. If I want to have different frictions between the roads and offroad areas how can I achieve this?

Thanks!

Link to comment

Hello!

@brentskeggActually, there isn't a built-in functionality for this. It's something that needs to be implemented through user-customized logic. I believe the simplest way to achieve this is by sending a fetch request outside of the wheel or even the entire car. Based on the surface or more likely a specific mask the car's wheel joints parameters should be adjusted accordingly. 

Thanks!

Screenshot 2023-12-13 111753.pngfriction_controller.png

Link to comment

Ah ok! I was begining to think something like so.

I think LandscapeFetch dont return any decal info?

Guess I'll have to do some raycast checking against the mesh that the decal is using somehow, since I dont have any imagebased info (albedo or mask) for the roads.

Thanks for the info!

Link to comment
15 minutes ago, brentskegg said:

I think LandscapeFetch dont return any decal info?

If using a decal is crucial then LandscapeFetch would not suit that case and a regular intersection should be used instead. However, I suppose the general approach would remain the same :)

Thanks!

Link to comment
×
×
  • Create New...