Code Monkey home page Code Monkey logo

Comments (10)

david-rhodes avatar david-rhodes commented on August 21, 2024 1

@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.

brnkhy avatar brnkhy commented on August 21, 2024 1

@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.

binakot avatar binakot commented on August 21, 2024

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.

binakot avatar binakot commented on August 21, 2024

Thanks, guys. The issue may be closed. 🍪

from mapbox-unity-sdk.

brnkhy avatar brnkhy commented on August 21, 2024

@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.

binakot avatar binakot commented on August 21, 2024

@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.

david-rhodes avatar david-rhodes commented on August 21, 2024

Fixed! #57

from mapbox-unity-sdk.

mtbrobotanist avatar mtbrobotanist commented on August 21, 2024

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.

david-rhodes avatar david-rhodes commented on August 21, 2024

@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.

dhruvmodhapp avatar dhruvmodhapp commented on August 21, 2024

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?
screenshot 2019-01-24 at 10 24 28 am
screenshot 2019-01-24 at 10 30 26 am

from mapbox-unity-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.