Comments (2)
You can use functions on the HTerrainData
resource, which is available on the data
property of the terrain node.
There is get_height_at
and get_interpolated_height_at
.
They expect coordinates in local space though, and return the height in local space as well, so you may have to convert them back to world space if you scaled the map with map_scale
or the node's transform.
get_internal_transform()
may be used to convert between cell space and world space.
Alternatively, the terrain node has a cell_raycast
method to raycast the ground in world space, though it returns 2D coordinates in cells.
A regular physics raycast would also give you that.
See also #300
from godot_heightmap_plugin.
Thank you.
from godot_heightmap_plugin.
Related Issues (20)
- godot 4.3.dev5 error on active HOT 2
- godot4.3.dev5 headless profile not good HOT 3
- Single line of pixels on top of detail texture HOT 3
- How can I set smooth texture transitions using Classic4/Lite shader by code? HOT 2
- Terrain scene will not load HOT 5
- Collider and Terrain not always exactly the same height? HOT 4
- How can I change the texture scale on the terrain? HOT 4
- How to correctly credit you? HOT 1
- How can I add detail layer at runtime using GDScript? HOT 3
- Strange square and contour artifacts in imported terrain HOT 7
- HTerrainDetailedLayer issues using centered maps HOT 3
- Tangent error in shader HOT 15
- How to get Multisplat16 working in procedural generation? HOT 3
- Allow showing CollisionShapes3D inside a StaticBody3D in the Editor for Dreadpon's Godot Spatial Gardener and maybe others to work with the plugin HOT 2
- Grass continues after the terrain and don't know why HOT 6
- mesh export is not same collide with the hterrain HOT 13
- Can't Texture Paint HOT 5
- Is it possible to create infinite procedural generated terrain? HOT 1
- texture can not paint second one HOT 3
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 godot_heightmap_plugin.