I want to know if it could be possible to add this simple colision system into the engine ?For the 3d actor... I've tried something like that by script , and i think that could be better to be added to the engine ..I do that only on 2 axes as long as i dont use an objects who fly. I can see my scene as 2d world.
Flash sample.
http://www.harveycartel.org/metanet/tutorials/diagrams/A1_aabb-aabb_sepaxis.swfhttp://www.harveycartel.org/metanet/tutorials/tutorialA.htmlIf somebody interested.... My script look like that....
Scuse me most comment are in some kind of french slang.....
function Colide_Actor(ActorA,ActorB)
{
if(ActorA.PosX - ActorB.PosX == 0 && ActorA.PosZ - ActorB.PosZ == 0) //Protection contre les Acteur au meme endroit préci...
{
ActorA.SkipTo3D(ActorA.PosX-1, ActorA.PosY, ActorA.PosZ-1);/// Répulsion 45 degré
ActorB.SkipTo3D(ActorB.PosX+1, ActorB.PosY, ActorB.PosZ+1);
}
else
{
///////////////////////////Le chifre qui est testé (20) représante la grandeur du caré autour de l'acteur
if (ActorA.PosX - ActorB.PosX >= -20 && ActorA.PosX - ActorB.PosX <= 0)//// Premier quadran��