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 Professional Discussion / placing entities onto limbs surface

Author
Message
shadey
16
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 2nd Oct 2013 17:10
Hi, getting so far into a 3d level editor, it would be nice now to be able to place a loaded 3d object onto a limbs surface from where ever my 3d cursor is. I know it has to to with raycasting but could anyone show me an example for this..thanks

Hail to the king, baby!

http://davidjohnwheeler.blogspot.co.uk
Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 2nd Oct 2013 17:49
I believe only 3rd party plugins allow for limb collision which again is another example of DBP odd design choices which should of been native.

If your using Sparky’s Collision plugin (it's a must for collision):
Um... one way would be to turn each limb into an object then check for collision. Then position and rotate the object you want to place on the surface based on collision position and face normals.

In my editor I usually keep everything as singular objects till I think it's done then convert them all to limbs to finalise the object. Easier because you don't have to go back and forth between limbs and objects.

"Get in the Van!" - Van B
shadey
16
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 2nd Oct 2013 17:53
bugga! ok thanks

Hail to the king, baby!

http://davidjohnwheeler.blogspot.co.uk

Login to post a reply

Server time is: 2026-07-06 10:36:24
Your offset time is: 2026-07-06 10:36:24