How can my entities find a euler angle from the surface below their normal? Like, to determine whether they're moving uphill or downhill, or falling towards a slope. I'm using A5 standard, but there must be a simple way...
I HEART 3DGS
Re: angles from a surface....
[Re: Chaeon]
#169038 11/23/0715:5411/23/0715:54
___NORMAL___ Vectors, often used to indicate a surface normal by several instructions. A surface normal is a vector of length 1 perpendicular to that surface ___Type:___ vector ___Remarks:___ Will only remain valid until the next wait instruction. ___Modified by:___ trace - normal = surface normal ___Example:___ function test { vec_set(temp, my.x); temp.z -= 1000 // 100 Quants down trace_mode = ingnore_my; result = trace(my.x, temp); vec_set(my.x, target); vec_to_angle(my.pan, normale); // put on surface } ___See Also:___ Entity, my, trace, target, bounce