Circulation of the Spike Blobs(CotSB)

Help Topics, Bug Reports, Feature Requests, etc.
Post Reply
User avatar
Jutomi
Rainbow AllStar
Posts: 4368
Joined: Tue Oct 15, 2013 8:42 pm

Circulation of the Spike Blobs(CotSB)

Post by Jutomi » Fri Jun 06, 2014 10:55 pm

I have been rather baffled at this...

now, if you recall, Midnight Synergy's level called "Custom Calamity"(I think) contained three of the golden custommodel objects.
If you all so remember, the object in the middle moved around in a circular pattern.

I don't know how to do that. :?

I know how to make them move in a diagonal line, but not circular.

There's a reason why I'd like to know, too - but it's for a project I won't get to for quite a while...

I just wanted to ask, in case any body knew how to make them move in a circular fashion, how they did it.

Thanks for reading this post. :mrgreen:
Last edited by Jutomi on Thu Jun 19, 2014 1:20 am, edited 1 time in total.
Your only little stinker that's absolutely NOT a z-bot by this name,
Jutomi~ :mrgreen:

Also, if you want to see my level list, here it is! :D
(Also: List of Hubs, WA Manual)
Oh, and my YT wonderland channel. Forgot about that.
User avatar
Wonderland King
Rainbow Master
Posts: 945
Joined: Thu Jan 17, 2013 12:48 am

Post by Wonderland King » Fri Jun 06, 2014 11:02 pm

I'll look in the editor. :)

EDIT: It has a YawAnim of 6.
User avatar
Jutomi
Rainbow AllStar
Posts: 4368
Joined: Tue Oct 15, 2013 8:42 pm

Post by Jutomi » Fri Jun 06, 2014 11:54 pm

Oh! :lol:

Sorry, when I said "circular momentum", I should have clarified...

I didn't mean its rotation, I meant its actual circular tile momentum. :lol:

Well, I found out that setting it to negative numbers seems to change it a bit, so I could probably figure out how to make a circle from that.

I've all ready made an arch, though, so I'm sure that a circle's not far behind. :mrgreen:
Your only little stinker that's absolutely NOT a z-bot by this name,
Jutomi~ :mrgreen:

Also, if you want to see my level list, here it is! :D
(Also: List of Hubs, WA Manual)
Oh, and my YT wonderland channel. Forgot about that.
User avatar
Wonderland King
Rainbow Master
Posts: 945
Joined: Thu Jan 17, 2013 12:48 am

Post by Wonderland King » Sat Jun 07, 2014 12:25 am

I understood what you meant, but maybe I missed something else. :lol: 8)
User avatar
Wonderman109
Rainbow MegaStar
Posts: 3530
Joined: Thu Jun 28, 2012 11:25 pm

Post by Wonderman109 » Sat Jun 07, 2014 1:19 am

This would be useful to learn more about. Something about those golden spikeys...is just so interesting.
User avatar
Pawelec
Rainbow Master
Posts: 690
Joined: Tue Jul 15, 2008 8:37 am

Post by Pawelec » Sat Jun 07, 2014 7:12 pm

I see you need some math...

Moving an object around circular path isn't possible just like that in 3D coordinates system. It is done by moving an object along a helix which has no height, what makes it move in a circular manner. I won't give you a lecture about how helixes are formed in coordinates system. Only things you need to know are:
- Patrick coded the engine to use sin(t) function as X/Y/Z Anim parameters,
- Patrick coded the engine to use cos(-t) instead of sin(t) when t is negative,
- an object moves along a helix when it moves along sin(t) in one axis and cos(t) along the other.
This means if you want an object to move in circles around one Z axis, you need to set XAnim to r, Yanim to -r, where r says how far from the center tile the object can go. Swapping the r's (so XAnim is -r and YAnim is r) makes an object go along the same circle, but in opposite direction. The simplest example is XAnim = 1, YAnim = -1, ZAnim = 0.

The thing is briefly mentioned in How To?... Custom Options PDF.

Now enjoy Custom model trying to catch its back.
"Let us return to the past; it will be progress."
by Giuseppe Verdi
Post Reply