How 2D in 3D (Anthony Flack's Cletus)?

Blitz3D Forums/Blitz3D Programming/How 2D in 3D (Anthony Flack's Cletus)?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

How are you arranging your multi-quads btw?
If you're offsetting in the X and Y direction from the objects main central X and Y then you won't be able to rotate them by a pivot point later.

When you need to do is offset your quads from the centre in a pivotal point. So instead of X and Y offset you have an angle(0-360) and a distance param. So therefore an angle of 0 and distance of 10 would be the same as an offset of Y=10, and an angle of 45 and distance of 10 would be X=10,Y=10 etc.

All depending on where your 0 degrees is pointing and in which direction your Y is, i doubt it'll be up, but you can always have a general offset of 90/180 degrees depending on where it is.

It's a bit more complex at first setting up your multiquads. But because you have them arranged already in radians. All you have to do is offset all your combined quads Sin and Cos values by a central parameter angle of rotation and they all move around automatically. Simple, well once you get the hang of it that is. :)

What you could also do is add a tilt paramater on top of all that. That goes between 3- and 3 degrees which adjusts as Cletus moves around. So cletus will fractionally lean forwards or backwards as he runs, giving it that 'seemingly more frames of animation' effect.

Also, you could have a wind parameter that is connected to the top two vertices of your flower and tree quads.
This way they could be gently rotated and bent as if they were blowing in the wind. ;)