Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, VoroneTZ, 1 invisible), 1,512 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Whats the difference between Vec_rotate and Ang_rotate? #5909
07/20/01 04:45
07/20/01 04:45
Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
W
WildCat Offline OP
Expert
WildCat  Offline OP
Expert
W

Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
Can someone please explain to me the difference between the Vec_rotate command and the new Ang_rotate?

I just don't get it. (Yet.)

Thanks!

- WildCat



Visit us at [url=http://www.vertexgames.com]Vertex Games[/url]!
Re: Whats the difference between Vec_rotate and Ang_rotate? #5910
07/20/01 05:11
07/20/01 05:11
Joined: May 2001
Posts: 1,261
Outarville, France
al1 Offline
Expert
al1  Offline
Expert

Joined: May 2001
Posts: 1,261
Outarville, France
Post voluntarily erased by her author
Freiwillig post , von ihrem Autor gelöscht.



Re: Whats the difference between Vec_rotate and Ang_rotate? #5911
07/20/01 09:07
07/20/01 09:07

A
Anonymous
Unregistered
Anonymous
Unregistered
A



I know, this has caused me problems (I must be getting old ), the rule of thumb I use is,
vec_rotate(dir,angle) rotates an "OFFSET" through the pan/tilt/roll of angle.

Example 1:
(Offset from car's centre to front right wheel = x60,y20,z0)
//--------- pseudo code --------
Wheel.x = 60;
Wheel.y = 20;
Wheel.z = 0;

//Cars pan/tilt/roll = 30/15/0
Vec_rotate(Wheel.x,Car.Pan)

This will rotate the right front wheel's offest to the pan/tilt/roll of the car.
The wheel will still need it's pan/tilt/roll matched to the car
vec_set(wheel.pan,car.pan)
& then the wheel will move exactly with the car.
As you can see vec_rotate rotated an offset (or displacement vector).

Now ang_rotate(vector1,vector2) rotates vector1's(pan/tilt/roll) through vector2's (pan/tilt/roll). It's rotating a group of angles by another group of angles. Not like vec_rotate which rotates a position by a group of angles.
(at least this is how I see it )


Re: Whats the difference between Vec_rotate and Ang_rotate? #5912
07/20/01 10:04
07/20/01 10:04
Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
W
WildCat Offline OP
Expert
WildCat  Offline OP
Expert
W

Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
Curses...

I mis-spoke.

Thanks for the response guys, but I knew that. What I **ment** to ask was whats the difference between ROTATE and ANG_ROTATE!

Thanks!

-WildCat



Visit us at [url=http://www.vertexgames.com]Vertex Games[/url]!
Re: Whats the difference between Vec_rotate and Ang_rotate? #5913
07/20/01 18:50
07/20/01 18:50

A
Anonymous
Unregistered
Anonymous
Unregistered
A



The only difference was that ROTATE used an entity, instead of an angles vector.

ROTATE was an old-style instruction. It can be completely replaced by ang_rotate, and won't be documented anymore.


Re: Whats the difference between Vec_rotate and Ang_rotate? #5914
07/21/01 00:13
07/21/01 00:13
Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
W
WildCat Offline OP
Expert
WildCat  Offline OP
Expert
W

Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
Thats what I was looking for. Thanks.


Visit us at [url=http://www.vertexgames.com]Vertex Games[/url]!

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | 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