Ergebnis 1 bis 6 von 6
  1. #1
    mk0505
    Gast

    Collision detection for driving game

    I am doing a 3D racing game in Director, and it's the first time I do a 3D game
    in director.
    Could anyone sugget me that what is the best way to program the collision
    detection between the car and the
    edge of the track.

    SIncerely

    Mark


  2. #2
    ensamblador
    Gast

    Re: Collision detection for driving game

    the best way is a technique called "ray casting". Basically it draws a ine
    (ray) starting from a point in the space and with a specific direction, then
    you must check what models are intersected by the ray, and if they distance is
    greater than the minimum needed for a collision.

    Lingo have "modelsUnderRay()" method that do it quicly and efficient.

    Of course, if you want to use physics, install havok xtra. But consider the
    first option:

    You have the position of the car and its local x axis, -x axis, -y axis, y
    axis.

    check the models itersected by the rays casted in ther four directions,
    starting from the position of the car.

    If the distance to the edge is less than a value, simply move the car model in
    the opossite direction (-ray),




  3. #3
    mk0505
    Gast

    Re: Collision detection for driving game

    where do I download the Havok Xtra? is it free?

  4. #4
    =?ISO-8859-1?Q?Agust=EDn_Mar=EDa_Rodr=EDguez?=
    Gast

    Re: Collision detection for driving game

    mk0505 wrote:

    > I am doing a 3D racing game in Director, and it's the first time I do a 3D game
    > in director.
    > Could anyone sugget me that what is the best way to program the collision
    > detection between the car and the
    > edge of the track.


    I´d go for Havok!
    --
    Agustín María Rodríguez | Partner
    Methanoia Studio | http://www.methanoia.com
    ---------------------------------------------------
    www.onwine.com.ar > Macromedia Director demos & code

  5. #5
    =?ISO-8859-1?Q?Agust=EDn_Mar=EDa_Rodr=EDguez?=
    Gast

    Re: Collision detection for driving game

    mk0505 wrote:

    > where do I download the Havok Xtra? is it free?


    Yes, it´s free.
    http://director-online.com/havok/
    --
    Agustín María Rodríguez | Partner
    Methanoia Studio | http://www.methanoia.com
    ---------------------------------------------------
    www.onwine.com.ar > Macromedia Director demos & code

  6. #6
    Mal
    Gast

    Re: Collision detection for driving game

    Hi Mark,
    > I am doing a 3D racing game in Director, and it's the first time I do a 3D game
    > in director.
    > Could anyone sugget me that what is the best way to program the collision
    > detection between the car and the
    > edge of the track.

    This might be a quick way of testing your 3D models ( if you have some
    existing ones ) within Shockwave 3D, and using Havok...

    http://www.candointeractive.com/gamedesign/car

    If it works OK in that, at least you'll know that your 3D environment is
    going to be fine.

    Regards...
    Mal

Ähnliche Themen

  1. 3D Driving Game
    Von Dolbarian im Forum Adobe Director Usenet Archiv
    Antworten: 3
    Letzter Beitrag: 18.03.2006, 20:49
  2. Driving Game
    Von Spaz im Forum Adobe Director Usenet Archiv
    Antworten: 1
    Letzter Beitrag: 02.02.2005, 20:00
  3. New shockwave 3d driving combat game
    Von AndyN im Forum Adobe Director Usenet Archiv
    Antworten: 2
    Letzter Beitrag: 25.10.2004, 11:00
  4. Driving a car - game in 2D NOT 3D
    Von Anonymous im Forum Adobe Director Usenet Archiv
    Antworten: 3
    Letzter Beitrag: 27.03.2003, 03:32
  5. Fast Effective collision detection for Fighting Game
    Von Dawsonmv im Forum Adobe Director Usenet Archiv
    Antworten: 3
    Letzter Beitrag: 01.01.1970, 01:00
 
 
Letzte Artikel