Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / doom be upon thee all! I NEED HELP

Author
Message
yosepp
21
Years of Service
User Offline
Joined: 14th Dec 2002
Location:
Posted: 29th Dec 2002 23:08
can smoeone show me a code that will make a 3d object 2 move from player position to a place far in front of the player? i've been figuruing it for the last eternity.
i thank thee. oblivion at last
hmm-my head is completely empty
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 30th Dec 2002 00:55
What are you trying to do? I can decipher your english Do you want to position an object in front of the player? Thats easy- just....

PlayerX= Object Position X(1)
PlayerY= Object Position Y(1)
PlayerZ= Object Position Z(1)

position object 2,playerx,playery,playerz+400

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
Easily Confused
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 30th Dec 2002 01:03
Not sure if this is what you mean.



Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Dr DooMer
21
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 31st Dec 2002 02:43
DooMer be upon thee!

Well, I think what you mean is you want an object to always be in front of the camera/player/object, even after repositioning and rotating the said 'entity' (used to be a QuakeC coder!). Anyway, here's a good way of doing it:

After all the movement updates to the player object/whatever, position object 2 at the player's position and align all it's angles to those of the players. Then, use the "move object" command to move object 2 forward in the direction it's facing.

There; hope that helps!

"I am a living, thinking entity who was created in the sea of information."
Dr DooMer
21
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 31st Dec 2002 02:46
The above method is a bit haphazard and probably quite a slow way of doing it (I would personally use trig. commands), but it's simple and works in 3D. Experiment - figure out which method works best.

"I am a living, thinking entity who was created in the sea of information."
yosepp
21
Years of Service
User Offline
Joined: 14th Dec 2002
Location:
Posted: 4th Jan 2003 15:04
hehe thx. I know my english isn't good, but i'm not from england or america too. I'm from Estonia or maybe it's called Estland by now. I doubt that anyone knows that. Anyway thanks [img][/img] haven't tried it yet but sure will!!

fira, fire, fire
-"Cornholio" alias Beavis

Login to post a reply

Server time is: 2024-11-23 20:44:47
Your offset time is: 2024-11-23 20:44:47