• Welcome to Dark Bit Factory & Gravity.
 

Object Orientation

Started by Clyde, March 14, 2012

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Clyde

Dear DBF Interactive,


I am tinkering around with an idea, but am stuck with rotating the objects so they resemble that of a dial.


Imagine a clock face with markers, a volume control, or better still the rays of a sun. Maybe cog teeth would be a better example, as that is an idea i've had floating about for eons. Where each bit is set at an angle as they go around.


I've got the positions worked out with sin and cos and 360.0f / amount_of_markers.
but the divide markers are not equally spread; best to imagine a clock face, 3 6 9 12.


I have compiled and added at blitz3d example of it so far. I hope you get what I'm waffling on about.


Nice to see you again, and many thanks.
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Stonemonkey

Hi Mike, long time no see.

Whatever angle you're using to calculate the x,y coords of the object is the same angle you should turn the object by.

the only thing might be a problem, I can't remember about blitz, is whether the 3D stuff and trig functions are degrees or radians and whether they're both the same.

Clyde

Ace & thanks!!
Great to see and hear you to Dude! I am still alive.

I Had tried similar before, good job you told me that or I'd be going around in circles ( bobboomtish). Needed to add a minus to  points angle in the z rotating value!!
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Kirl

Quote from: Clyde on March 14, 2012
I Had tried similar before, good job you told me that or I'd be going around in circles ( bobboomtish).
Haha, hi Clyde! :D

www.kirl.nl
Challenge Trophies Won:

Clyde

\o/

btw, the default in blitz is degrees.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Shockwave

Welcome back Mike!

Good to see you :)
Shockwave ^ Codigos
Challenge Trophies Won:

Yaloopy

Hey Clyde,

Good to see you're back. Hope you're keeping well!
Fuck L. Ron Hubbard and fuck all his clones.
Challenge Trophies Won:

Clyde

Hello Old Beans!!
Keeping well as can be expected, trust you are too.
Provided I don't get any distractions, let's make one of them demo contraptions! :D
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won: