﻿ Simple colision detection
• September 07, 2024, 09:49:26 PM
• Welcome, Guest

Pages: [1]

### AuthorTopic: Simple colision detection  (Read 3693 times)

0 Members and 1 Guest are viewing this topic.

#### leucome

• Occasional poster
• Karma: 0
• Offline
• Gender:
• Posts: 86
##### Simple colision detection
« on: January 08, 2006, 02:40:11 AM »

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.swf

http://www.harveycartel.org/metanet/tutorials/tutorialA.html

If 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��
« Last Edit: January 09, 2006, 11:50:54 AM by leucome »
Logged
Look my Site ——► http://news.leucome.ca

#### Mnemonic

• WME developer
• Karma: 41
• Offline
• Gender:
• Posts: 5683
##### Re: Simple colision detection
« Reply #1 on: January 09, 2006, 09:09:52 PM »

Yes, I'm cooking something with the 3D actors right now, I hope to add some kind of collision detection as well.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.
Pages: [1]

Page created in 0.024 seconds with 19 queries.