Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Collision detection with two 3D actors  (Read 2758 times)

0 Members and 1 Guest are viewing this topic.

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Collision detection with two 3D actors
« on: March 27, 2008, 02:36:46 PM »

Hi!

I´ve got 2 switchable 3D actors. How can I avoid that these actors pass through each other?

My though was, that I alter the scene.script file

Code: [Select]
on "LeftClick"
{
  // when the scene is left-clicked, just send the actor to the specified point
  actor.GoTo(Scene.MouseX, Scene.MouseY);

 --> change waypoints and blocked area somehow
}

But how would I do that?

Thankful for any help,
Oli
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Collision detection with two 3D actors
« Reply #1 on: March 27, 2008, 10:43:43 PM »

There is no direct way for 3D actors. What I'm going to implement soon is support for "private blocked regions", which the actors carry with them (2D actors allow that already). This will however only work for scenes with 2D pathfinding enabled.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Re: Collision detection with two 3D actors
« Reply #2 on: March 27, 2008, 11:27:11 PM »

Very cool! ::thumbup
Logged
 

Page created in 0.1 seconds with 24 queries.