Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 02:32
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
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
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, kzhao, qin), 21,501 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Orientation With Lite-C #118128
03/18/07 22:25
03/18/07 22:25
Joined: Oct 2006
Posts: 7
A
agrollinspage Offline OP
Newbie
agrollinspage  Offline OP
Newbie
A

Joined: Oct 2006
Posts: 7
I am currently working on having a fire ball fly across the screen. The fire ball's model is a sphere that has a tail thats a cone. I can get it so it will shoot in the correct direction. The problem is I can not get the fire ball to rotate so that the tail is pointing in the right direction. Does anyone have any suggestions?

thanks

Re: Orientation With Lite-C [Re: agrollinspage] #118129
03/19/07 08:12
03/19/07 08:12
Joined: Jul 2000
Posts: 28,050
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,050
Frankfurt
Use vec_to_angle for that. If "vSpeed" is the speed vector of your fireball, set its angle by

vec_to_angle(my.pan,vSpeed);

Re: Orientation With Lite-C [Re: jcl] #118130
03/19/07 23:27
03/19/07 23:27
Joined: Oct 2006
Posts: 7
A
agrollinspage Offline OP
Newbie
agrollinspage  Offline OP
Newbie
A

Joined: Oct 2006
Posts: 7
Thanks a lot jcl, it worked


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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