ENIGMA Forums

General fluff => General ENIGMA => Topic started by: Goombert on April 19, 2013, 05:06:48 AM

Title: Abstract Object Types
Post by: Goombert on April 19, 2013, 05:06:48 AM
After an argument the other day with Josh that ENIGMA should be able to support both the 2D and 3D physics systems being used simultaneously and him discouraging any sort of abstraction to the built in objects, this time he has lost the argument.

(http://wiki.yoyogames.com/images/9/95/AC_ParentButton.png)

As you can see there Josh, "Uses Physics", therefore we better get started.  :(
Title: Re: Abstract Object Types
Post by: Josh @ Dreamland on April 19, 2013, 08:31:33 AM
Get started what? I like the "uses physics" idea. It lets physics systems (such as Box2D) know whether or not to generate bodies for each instance.
Title: Re: Abstract Object Types
Post by: Goombert on April 19, 2013, 09:04:01 AM
The button keeps the object from inheriting the built in phy_* constants and stuff, a physics body still needs generated through code. In Studio the two collision systems work together in conjunction.
Title: Re: Abstract Object Types
Post by: Josh @ Dreamland on April 19, 2013, 09:19:02 AM
The mechanism you're describing would bog everything down. I've designed the extension system to ameliorate that effect, but it's presently out of commission due to virtual cast issues. When the new compiler is in, those should be fixed, and you will be able to use the extension system for that. Though, it will need extended; right now, it is an all-or-nothing system. There's no mechanism to allow objects to specify which extensions they use, but I must say, I like the idea of allowing for one, and I could implement a much better system in ENIGMA than std::bad_cast.
Title: Re: Abstract Object Types
Post by: TheExDeus on April 19, 2013, 03:18:30 PM
I don't see you Josh implementing anything anytime soon. Unless you plan to graduate (or give slightly less of a fuck about school). I have plenty of free time with my uni masters degree, but I have just taken up a lot of other stuff.
Title: Re: Abstract Object Types
Post by: Josh @ Dreamland on April 19, 2013, 05:19:57 PM
I do plan to graduate shortly, but not this semester. I might be able to graduate by summer's end. But all my hard courses are officially out of the way, now. So, I will likely indeed be giving less of a fuck about school.