Try my new website:
www.urcho.com
- the new SIMPLE social network
Sign up
|
284
members |
114
snippets
Search for:
ALL
POPULAR
File Controls
Multiplayer Code
2D Effects
3D Effects
Oldskool demos
Basic Functions
Maths/Physics
Sound
Tutorials
Misc
Username:
Password:
Sign up
Calc terrain height - Ideal for terrain tool by Qimmer
[
back
]
Author:
Archive
| Viewed:
558
times | Language:
BlitzBasic 3D
| Category:
Maths/Physics
;GetHeight#( center x of mountain, center z of mountain, vertex/terrain-seg x to calc, vertex/terrain-seg z to calc, mountain radius ) Function GetHeight#(cx#,cz#,px#,pz#,r#) If PointDistance#(cx#,0,cz#,px#,0,pz#)
Author Comments:
Uses Cos#() to calc the vertex/terrain height for ex. a mountain. Ideal if u want to make a terrain tool for modifying the terrain with smooth mountains.
Login or
create an account
to comment on this snippet