Gamestudio Links
Zorro Links
Newest Posts
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 23,832 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joe_kane, Namitha_NN, Syndrela, agasior, mosfet
19189 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