Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/27/26 22:06
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 5,688 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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,077
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,077
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