Gamestudio Links
Zorro Links
Newest Posts
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 27,768 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
locked to world + rotation? #327101
06/04/10 15:32
06/04/10 15:32
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
Hi all again,

I want to lock an object to the world, and use the following code...

{vec_set(obj_mdl.x,vector(x,y,z));vec_set(obj_mdl.pan,tubey.pan); vec_for_ent(obj_mdl.x,tubey);}

Which works fine.... but I also want to rotate it, with the following line, ot the obj rotates and turns with the world.

vec_add(obj_mdl.pan,vector(x,0,0));

Whic does NOT work....probably because the parameters are holding it in position??
So.... any ideas? apart from animation???


As usual, thanks in advance....
D.

Re: locked to world + rotation? [Re: Darkmatters] #327191
06/04/10 23:52
06/04/10 23:52
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

If you are trying to have the object rotate with the world
so that it appears not to move you have to
make the object follow the movement of the world

so (not code)
vec_set ( your object, world pan or position....)


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C

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