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 / drawing a line in 3d?

Author
Message
louis dimsdale
22
Years of Service
User Offline
Joined: 6th Nov 2002
Location:
Posted: 4th Mar 2004 12:34
this there a comman or way of drawing a line in 3d space?
for example, i what to have a water skier behind a speed boat.
i need to draw a line from the boat to the ski.

is the a command that i'm missing some where or some other way to do it??

cheers,
ross
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 4th Mar 2004 12:36
There isn't a command, no...

But...

You can use the Make Object Triangle command and simply set two of the points at the same location, and set culling off.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
louis dimsdale
22
Years of Service
User Offline
Joined: 6th Nov 2002
Location:
Posted: 4th Mar 2004 23:12
thanks jess, i will give that a go.

cheers,
ross
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 5th Mar 2004 04:57
What I normally do is create a long cube, place it at the midpoint between the two end points, and use point object to align it to one of the end points.

But in the case of a tow rope, it would be much more clever to make a chain and have it dynamically respond to swaying, jumps, etc. You can do this in many ways:

1. Use the above example to make a series of linked cubes.
2. Make a mesh object and dynamically tweak it inside of a memblock.
3. Create a series of triangles and adjust them on the fly.
4. Make a rope object and glue extra limbs to create a chain.

I'm sure there are other ways as well.
--
TAZ

Login to post a reply

Server time is: 2025-05-23 14:11:25
Your offset time is: 2025-05-23 14:11:25