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 / Pointing the object

Author
Message
MateiSoft Romania
12
Years of Service
User Offline
Joined: 16th Oct 2013
Location:
Posted: 15th Mar 2014 17:54
Hey community!

I am having a little problem with the point object command, i mean i think i don't know the correct formula of doing this.

I have a wiredframed object that moves with the camera and it acts like a brush. Every time i click, i select the texture and it makes an object with the exact size of the brush with the respective texture. However, when i want to rotate the brush and make the object, it doesn't point correctly like the brush. I mean it rotates up down left or right depends of the angle number 180,360 but not correct at all!

Please if i didn't gave very much information, tell me and i will try to add more information or to re explain!

Thank You again!

I tried like this:



Alex Matei CEO
www.alexmatei.com
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 15th Mar 2014 19:00
point object points the object at a specific point in the 3D world - just as it says in the Help file. Nothing to do with angles at all.

You may need to change the object's pivot - see fix object pivot.

However, you might be wanting to position the brush rather than rotate it? The following snippet shows one way to use point object.





Powered by Free Banners
MateiSoft Romania
12
Years of Service
User Offline
Joined: 16th Oct 2013
Location:
Posted: 15th Mar 2014 19:22
Thank You Green Gandalf for the response! However the fix object pivot resolves a bit...

The object basically it doesn't rotates only on Y axis...it rotates in X, in Z and of course i am rotating it only on the Y axis.

So this is the code that rotates the brush...




And this the code that creates the box from the brush and places where the brush was and of course the point object that entered in my first post


Alex Matei CEO
www.alexmatei.com
MateiSoft Romania
12
Years of Service
User Offline
Joined: 16th Oct 2013
Location:
Posted: 15th Mar 2014 19:35
Actually i spoked to early again!

Thank You Green Gandalf i resolved i realized that i really used a different command than i should use...silly

Alex Matei CEO
www.alexmatei.com

Login to post a reply

Server time is: 2026-07-06 10:01:06
Your offset time is: 2026-07-06 10:01:06