Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,187 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
entity rotation #206131
05/11/08 12:34
05/11/08 12:34
Joined: Mar 2004
Posts: 281
England
frescosteve Offline OP
Member
frescosteve  Offline OP
Member

Joined: Mar 2004
Posts: 281
England
Is there a way to rotate an entity by its relative position. I am rotating my entities on one axis but then when you go to rotate it on a different axis you can get unwanted results.

I tried using c_rotate and tried editing the actual angles and both give the wrong results.

Never mind... I read the manual and found USE_AXIS.

Last edited by frescosteve; 05/11/08 12:43.
Re: entity rotation [Re: frescosteve] #206140
05/11/08 13:58
05/11/08 13:58
Joined: Jul 2006
Posts: 511
Germany,NRW
KMS Offline
User
KMS  Offline
User

Joined: Jul 2006
Posts: 511
Germany,NRW
I have the same problem as I understood the post right.I think,we have to use ang_add,but I don't know to script it.


You need full animated lowpoly-fishes?Look at
http://www.projekt-3d.de/pages/shop2pag.html
Re: entity rotation [Re: KMS] #206306
05/12/08 21:07
05/12/08 21:07
Joined: Sep 2007
Posts: 67
Seevetal, Germany
Rasterbar Offline
Junior Member
Rasterbar  Offline
Junior Member

Joined: Sep 2007
Posts: 67
Seevetal, Germany
This should work.
Code:
vec_set(you.pan, vector(10,0,0)); // the offsets for the you entity pan tilt roll
ang_add(you.pan, my.pan); // add the pan tilt roll from the my entity


Re: entity rotation [Re: Rasterbar] #206320
05/12/08 22:37
05/12/08 22:37
Joined: Jun 2003
Posts: 261
Broken Arrow ,OK
BERG Offline
Member
BERG  Offline
Member

Joined: Jun 2003
Posts: 261
Broken Arrow ,OK
the easiest way to do it is c_rotate(my,angle vector,use_axisr);

Re: entity rotation [Re: BERG] #206324
05/12/08 22:39
05/12/08 22:39
Joined: Jun 2003
Posts: 261
Broken Arrow ,OK
BERG Offline
Member
BERG  Offline
Member

Joined: Jun 2003
Posts: 261
Broken Arrow ,OK
angle vector is the pan,tilt roll vector that it will move every frame. use_axisr is for what i call "airplane" flight

Re: entity rotation [Re: BERG] #206343
05/13/08 02:04
05/13/08 02:04
Joined: Jul 2006
Posts: 511
Germany,NRW
KMS Offline
User
KMS  Offline
User

Joined: Jul 2006
Posts: 511
Germany,NRW
Thank's for your tips!


You need full animated lowpoly-fishes?Look at
http://www.projekt-3d.de/pages/shop2pag.html

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