- Home /
Get your position and construct a feature map
Hi All, Imaging I'm in a 3D world with a terrain, I would like to cover some areas like water, and some places like floating places, where I want my player to crash in those areas, how would I build like a feature map or a crash map ?
How about creating a bitmap with the same aspect ratio of your world and giving safe areas a different color than crash areas. Then you could read the pixel color that relates to the current vehicle position to see if it should crash.
@robertbu that's what I really wanted to do, but should I paint them by my hands ? or it's possible to extract the map from the lightmaps for example ? how to generate it? how to convert the vehicle position to color ?
Answer by tanoshimi · Jul 26, 2014 at 05:31 PM
Crash into... what exactly? Sounds like you need to create an object with a mesh collider to mark out your "crash areas", and then make them invisible by disabling the mesh renderer.
Not crashing with objects, but crashing in places, like if I'm driving a 3d care game and I'm not driving in the track, I should crash, I don't need to place objects everywhere along the track to crash with them. I need a think like a top view projection map ?