Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/23/26 09:08
No connection to MT4
by JeyKey II. 10/22/26 15:33
Zorro tutorial ideas?
by mistery. 10/21/26 05:28
Avoid "log\ - delete old files" message
by Martin_HH. 10/20/26 07:23
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, JeyKey II), 11,740 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 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