2 Attachment(s)
Phizix - "Super Mario Galaxy"-style gravity
I knocked this up because I was bored :grin:
It's a Phizix example that has a small 'planet' with it's own centre of gravity. The box will always fall towards the planet, much like the gravity system in Super Mario Galaxy. Since it worked, I figured I'd upload it for you guys to enjoy :)
Oh yeah, if anyone can teach me how to make it work with multiple planets and multiple boxes, that'd be great ;)
(You'll probably notice the Alterable Value B setting the distance for no apparent reason... a previous attempt at getting it to work with multiple planets =P ).
Also, you can click anywhere to move the box to that position, or press space to apply a random force to it. Try to get it orbiting the planet!
Re: Phizix - "Super Mario Galaxy"-style gravity
Nice work. I made something like this before... actually, it was pretty much the same. :P Same "bug" though, the boxes are bouncing around, which is pretty bad imo.
Re: Phizix - "Super Mario Galaxy"-style gravity
Yeah I also tried this... with same bug hahaha
Re: Phizix - "Super Mario Galaxy"-style gravity
Quote:
Originally Posted by Looki
Nice work. I made something like this before... actually, it was pretty much the same. :P Same "bug" though, the boxes are bouncing around, which is pretty bad imo.
Bouncing? How do you mean? I didn't notice any bouncing on my computer
Re: Phizix - "Super Mario Galaxy"-style gravity
I think they mean how the box will never come to rest once it has landed. Probably has to do with the planet being perfectly round.
Re: Phizix - "Super Mario Galaxy"-style gravity
Quote:
Originally Posted by Werbad
I think they mean how the box will never come to rest once it has landed. Probably has to do with the planet being perfectly round.
Ah yeah, so it does. I wonder if I can fix that...
Re: Phizix - "Super Mario Galaxy"-style gravity
Oh my Goodness!
This is exactly what I was looking for! Thank you!!
:D
Re: Phizix - "Super Mario Galaxy"-style gravity
The reason that multiple boxes can't have separate gravities is that with Phizix, each body does not have it's own individual value for x and y gravity, rather the World itself does. This means that while multiple planets are possible (using a little bit of maths), more than one body is not.
The only way I can think of doing this with Phizix is to not use Phizix's gravity, rather; apply a force in the direction of gravity. Again, a bit of maths, and it's all possible.
Re: Phizix - "Super Mario Galaxy"-style gravity
Quote:
Originally Posted by DizzyDoo
The reason that multiple boxes can't have separate gravities is that with Phizix, each body does not have it's own individual value for x and y gravity, rather the World itself does. This means that while multiple planets are possible (using a little bit of maths), more than one body is not.
The only way I can think of doing this with Phizix is to not use Phizix's gravity, rather; apply a force in the direction of gravity. Again, a bit of maths, and it's all possible.
Yeah, I'm currently trying that, and it seems to work :)
Just gotta ammend the loop to fit multiple boxes xP