Add Colliders to 3D Buildings Layer

164
1
4 weeks ago
AndrewMcLane
New Contributor III

I have buildings created via a scene layer 

var buildingLayer = new ArcGIS3DObjectSceneLayer(
"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",
"Building Layer", 1f, true, APIKey);
map.Layers.Add(buildingLayer);

This works well. 

I would like to add colliders to these buildings. How does one do that? Thanks again. 

0 Kudos
1 Reply
and1
by Esri Contributor
Esri Contributor

The easiest way that I could think of to have mesh colliders on these buildings is to turn on Mesh Colliders from the ArcGIS Map Component. 

and1_0-1715717488064.png

Make sure the other objects (e.g. game engines assets) in the scene will have colliders, ArcGIS Location Component and rigidbody.

 

0 Kudos