cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Calculate steepness or incline from 3 to
Calculate steepness or incline from 3 to 4 points (XYZ)
Jan 26, 2015 at 4:51pm UTC
vivienneanthony
(73)
Hello
Do anyone have a idea to calculate steepness or incline from 3 to 4 points in a 3D(xyz) point?
I'm trying to calculate steepness to determine if i can or cannot place objects on a super steep elevation in a 3D game?
My initial thinking was to add up all angles then divide by 4? I'm not a match major and I am not finding any information online.
Vivienne
Jan 26, 2015 at 7:29pm UTC
dhayden
(5798)
Hmm. The slope from (0,0,0) to (x,y,z) is z / sqrt(x^2+y^2). To compute the slop between two points, take the difference between the two points and then use the formula.
Topic archived. No new replies allowed.