Comments (10)
@binakot There are some commented lines in TerrainFactory.cs
that add MeshColliders
to the tile game objects. Just uncomment them.
tile.gameObject.AddComponent<MeshCollider>();
Querying tile height is also possible from the QueryHeightData
method in UnityTile
.
from mapbox-unity-sdk.
@binakot Probably you should to add a check box on terrain factory with "Add mesh colliders" or smth like that?
I have no idea how I couldn't thought of that before. Doing that right away, thanks!
from mapbox-unity-sdk.
Great thanks! I broke my brain last night. Probably you should to add a check box on terrain factory with "Add mesh colliders" or smth like that? Thanks again. Cheers!
from mapbox-unity-sdk.
Thanks, guys. The issue may be closed. 🍪
from mapbox-unity-sdk.
@binakot we can keep it till we merge this in; #57
I added both collider and layer settings, will merge it after some testing.
from mapbox-unity-sdk.
@brnkhy Okay-okay. I was not going to do it. Just wanted to say that for my project the problem is solved. 😎
from mapbox-unity-sdk.
Fixed! #57
from mapbox-unity-sdk.
hey guys i know this is issue is closed but regarding the QueryHeightData() method, what units does it return? I can't seem to find any info
from mapbox-unity-sdk.
@mtbrobotanist Units are in meters. The returned value will be scaled based on the height modifier of the terrain factory, though.
from mapbox-unity-sdk.
I have added MeshCollider on land-use. But now I have an issue is Mesh Collider 'looks inside hollow'. Due to inside mesh collider is hollow, collision not happening inside. How to make mesh collider solid?
from mapbox-unity-sdk.
Related Issues (20)
- Spawn prefabs upwards with a fixed gap
- why only mapbox street v7 can edit POI prefab
- Mapbox + Unity Cloud Build
- Error: Cannot Initialize non-default texture with negative or zero width HOT 1
- suddort URP ? HOT 2
- How to Apply Texture to Tiles
- Swapped North/South and West/East coordinates in Tile Id To Bounds?
- This project is dead? HOT 12
- Your hardware does not support this application. Failed to load 'libmain.so' java.lang.UnsatisfiedLinkError: dopen failed: library "libmain.so" not found HOT 1
- Can I make changes to AbstractMap's Features?
- Can I make changes to AbstractMap's Map Layers Tileset ID via code during runtime?
- heatmap rendering issue
- Meta Quest 3 Build Issues
- Some Building Meshes get "cutoff"
- Mapbox building:levels property support of Unity SDK HOT 3
- language support for raster tile
- Unity - Mapbox environment "Profiles"
- Not compatible with Unity 6 HOT 1
- Custom layers no longer visible in newly updated maps
- Exception when calling SetLocationCollectionState
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbox-unity-sdk.