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.

DarkBASIC Discussion / Object position?

Author
Message
Windsept
18
Years of Service
User Offline
Joined: 9th Jun 2006
Location: United States
Posted: 5th Aug 2006 15:44
Hello all!!

Heres my question. If you have a spaceship and there are lasers on the wings of the ship how do you find the position of the laser so you can make the laserbeam? By the way the spaceship is one model with the lasers included.

I know you could add a number to the object position (x,y,z) but then if you turn the ship the laserbeam appears wayout away from the ship.
If you could help I would really appreciate it.

Thanks
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 5th Aug 2006 16:42
You could put limbs there. Like make some cylinders as guns, and just put some ends on them that are a bit bigger cylinders, but short. Then use those limb positions to position your lasers. When you rotate the ship, rotate the lasers at the same time.

Lord Einstein
19
Years of Service
User Offline
Joined: 22nd Oct 2005
Location: Well here, of course...
Posted: 6th Aug 2006 20:30
I other solve this proble by setting the laser beam to the ships orientering and then yrotate it +90 and move it to the left and right wings (If I want lasers on each wing).
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Aug 2006 03:18
Here's some lazer beam code from the author of Code Keeper,



It's pretty clever. With a little adaptation, it may be what you are looking for.

Enjoy your day.

Login to post a reply

Server time is: 2025-05-25 10:20:24
Your offset time is: 2025-05-25 10:20:24