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 / 3D Capsule from Point To Point

Author
Message
DigitalFury
13
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 22nd Sep 2010 01:34 Edited at: 23rd Sep 2010 02:52
I have two points (objects) and I need to make a capsule that connects both points. I can't figure out what I did wrong.

Here is the code: (Object1, Object2 are the points)
` Position Capsule so it connects the two point

Function MakeObjectCapsule(Object, Height#, Radius#)
EndFunction

I'm so close!

Edit: Never Mind. I figured it out. I will post a demo or something as soon as I am done! Posted this in the wrong place anyways. Oops.

Thanks
Robert The Robot
17
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 22nd Sep 2010 13:53
Erm... Unless I'm very much mistaken, the "Lock Vertex Data" commands are from DBPro only. I'm afraid this won't work at all in DBC!

Also, your code references "AnglePtToPt(Z1#, Y1#, Z2#, Y2#)", I'm not sure if that command's in a pulgin or your own code but I've no idea what it does!

"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."
DigitalFury
13
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 22nd Sep 2010 22:12 Edited at: 20th Nov 2010 05:13
@Robert The Robot: Oops forgot to include AnglePtToPt. AnglePtToPt is just the arctanfull function in DBP.

@Everyone - Figured it out. NM. Thanks.

Check out the pics for the working capsule bone function:
Object Skeleton

Login to post a reply

Server time is: 2024-04-19 00:49:25
Your offset time is: 2024-04-19 00:49:25