Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,619 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
angles from a surface.... #169037
11/23/07 04:44
11/23/07 04:44
Joined: Nov 2007
Posts: 50
C
Chaeon Offline OP
Junior Member
Chaeon  Offline OP
Junior Member
C

Joined: Nov 2007
Posts: 50
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/07 15:54
11/23/07 15:54
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
Quote:


___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



From the A5 manual...


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: angles from a surface.... [Re: EpsiloN] #169039
11/24/07 08:34
11/24/07 08:34
Joined: Nov 2007
Posts: 50
C
Chaeon Offline OP
Junior Member
Chaeon  Offline OP
Junior Member
C

Joined: Nov 2007
Posts: 50
This is perfect... i though it must be some trace-set vector, but i didn't know how to access it. I swear i've never seen that manual page...

thanks a lot


I HEART 3DGS

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1