Jump to content

  • Log In with Google      Sign In   
  • Create Account


ARCGames

Member Since 26 Jun 2007
Offline Last Active Apr 09 2014 02:33 PM
-----

Posts I've Made

In Topic: MOBA in C# XNA

24 October 2012 - 01:28 PM

UDK doesn't offer code level access; code/engine source access requires an expensive Unreal engine license. If it's running slowly on your machine, you may want to investigate the UDK forums. I would imagine they would be better equipped to help out in that regard.

Best of luck!

In Topic: Is it acceptable to call a destructor?

18 October 2012 - 11:06 AM

In general, it's poor form to directly call a destructor (save for the case where you're calling a parent class destructor from a child class desctructor).

Honestly I've never heard of anyone doing this and I can think of a lot of things that could go wrong. For instance, if after your ~Enemy() call, you attempt to manipulate the object (either outside the class or inside the class itself), you'll have an invalid pointer.

For instance:

[source lang="cpp"]... // NOTE: Assumes you have a vector/array of enemies and a pointer to the projectile. for( int i = 0; i < numEnemies; ++i ) { if( checkCollision( enemies[i], pProjectile ) ) { // Destructor will be called right here in onCollision(). enemies[i].onCollision(pProjectile); } // Now you have an invalid reference to your object and this call will produce only sadness (crash or undefined behavior). enemies[i].someOtherFunction(); }...[/source]

In Topic: Anyone Want to Recommend An Engine?

17 October 2012 - 02:34 PM

OGRE3D might accomplish what you need.

If I recall correctly, it's written with a plugin architecture in mind so you could replace or add things as needed.

In Topic: MOBA in C# XNA

17 October 2012 - 02:07 PM

If you decide to investigate using UDK, they have a MOBA tutorial that could be used to start off your prototyping/development:

Unreal MOBA Starter Kit

In Topic: How to simulate the cloth in game

12 November 2008 - 06:23 AM

From my understanding of some common and simple forms of cloth simulation, there is no requirement to use spring physics, but not doing so can cause some pretty weird behavior.

The following article discusses a very lean and efficient method of cloth simulation that was used in Hitman:

http://72.14.205.104/search?q=cache:cNhtQgK60hwJ:www.teknikus.dk/tj/gdc2001.htm+http://teknikus.dk/tj/gdc2001.htm&hl=en&ct=clnk&cd=1&gl=us

Removing the spring equation from the "satisfyConstraints()" function and forcing the distance between the two vertices to be the desired length might accomplish what you wish, assuming that you are iterating through the constraints in the proper order (top to bottom of the mesh, for instance).

The relaxation used in this can also be made more accurate by increasing the number of times that you iterate over the mesh.

This has worked wonders for me in the past, even on embedded platforms.

Hope it helps. Best of luck even if it doesn't. :)

-Andrew

PARTNERS