Gamestudio Links
Zorro Links
Newest Posts
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (USER0328), 1,371 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 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,133
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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