Moving Objects

Questions and answers about the how and why of making maps.
Post Reply
User avatar
Kill Joy
Private First Class
Private First Class
Posts: 10
Joined: Sat Jan 29, 2005 8:49 am
Location: Everywhere and yet, nowhere

Moving Objects

Post by Kill Joy »

So i heard you can have objects moving. how do you do this?
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

no, you can have objects that move the tank with Physics drivers, they do not move themeslevs.
ImageJeffM
User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA »

Can you tell me how to make a moving sidewalk? Please!!! Darn im asking alot of questions.
Last edited by BIYA on Sat Feb 05, 2005 6:04 am, edited 2 times in total.
User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG »

Moving sidewalk:

Code: Select all

physics
name moving_sidewalk
linear 10 0 0
end
That makes the sidewalk move at 10 units forward. It is relatively slow.

Here is the object:

Code: Select all

meshbox
name sidewalk
position 0 0 0
size 10 100 1
phydrv moving_sidewalk
end
User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA »

Thanks... im guessing the 10 in linear means how many units?

Tested it and now theres another problem.... How do I cange the direction of the way it travels?
User avatar
sid6.7
Private First Class
Private First Class
Posts: 614
Joined: Mon Oct 06, 2003 9:58 pm
Location: West USA
Contact:

Post by sid6.7 »

BIYA wrote:Thanks... im guessing the 10 in linear means how many units?

Tested it and now theres another problem.... How do I cange the direction of the way it travels?

its a guess but liner # # # forward /backwards /up?

or would you use negative numbers to change the direction?
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

it's an X Y Z vector in world coordinates..

seting it to 1 1 0 would move the tank 1 unit in X per second, 1 unit in Y per second, and 0 units in Z per second. AKA a 45 degree angle from 0. An object dosn't care what direction your "facing" so there is no concept of "forward"
ImageJeffM
User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA »

Okay its like changing the positon of the movment. I SEE.

But this moves the tank but how do I get it to look like a escalator? The moving incline.

And also. What if you want multiple things to move in the same direction but each of the objects have a different rotation. How do I get them all to move the same way?
User avatar
Scorch
Private First Class
Private First Class
Posts: 747
Joined: Thu Sep 30, 2004 12:16 am

Post by Scorch »

texture matrix for the looks of moving.
User avatar
Kill Joy
Private First Class
Private First Class
Posts: 10
Joined: Sat Jan 29, 2005 8:49 am
Location: Everywhere and yet, nowhere

Post by Kill Joy »

owww i tried that while using the caution texture. that hurt my eyes.
Not even I can control my mind.
User avatar
Scorch
Private First Class
Private First Class
Posts: 747
Joined: Thu Sep 30, 2004 12:16 am

Post by Scorch »

oh hehe, put a caution texture with a texture matrix 1 1 0 on a sphere with 8 divisioins, it is so cool!

ok back on topic: if you mean like those ramps on jpa's maps im not absolutely positive but im pretty sure that those use spin.
Post Reply