Professional Web Applications Themes

havok "floating" platforms - need some advice - Macromedia Director 3D

Hi all, I hope this makes sense enough: I'm trying to create a object that will act as a moving platform in an "free-floating" world. Basically, the player( a ball) is rolling around on a surface comprised of different blocks and the idea is not to fall off. I'm wanting to create this platform (and different moving variations of it) to take the player to seperate, unconnected blocks or surfaces. Although i know it's not the way to do it, I've got it working somewhat by creating a moveable rigid body, keeping it pinned, and then changing the body's position ...

  1. #1

    Default havok "floating" platforms - need some advice

    Hi all, I hope this makes sense enough:

    I'm trying to create a object that will act as a moving platform in an
    "free-floating" world. Basically, the player( a ball) is rolling around on a
    surface comprised of different blocks and the idea is not to fall off. I'm
    wanting to create this platform (and different moving variations of it) to take
    the player to seperate, unconnected blocks or surfaces.

    Although i know it's not the way to do it, I've got it working somewhat by
    creating a moveable rigid body, keeping it pinned, and then changing the body's
    position directly. My problem is, if I try to use the "correct methods" of
    either interpolatingMoveTo to CorrectorMoveTo, gravity effects the simulation
    and the platforms move in a non-precise manner. if I apply and anit-gravity
    force to the objects, then once the player hits these platforms, the float off
    in the typical "no gravity" way.

    Doing what I've been doing works as longs as i keep the amount of movement
    per frame very low (resulting in very slow platforms), but when I speed things
    up of course collision fails because i've moved the object without applying a
    force or impulse.

    Does anyone have any general ideas on how to use a platform with havok like
    this? You can see an example here...(be gentle, it's a work in progress)
    http://naytek.com/portalBall/pb.htm

    thanks in advance for any advice!

    Skavengur Guest

  2. #2

    Default Re: havok "floating" platforms - need some advice

    Got it! For future reference, though I may be the only one that DIDN'T know
    this...

    Had to pin the rigid body, use the correctorMoveTo, when it reaches it
    destination re-pin it. Apparently using correctorMoveTo unpins a rigidBody as
    the platform was sucbing to gravity once it reached it's desired location.

    Hope that helps someone else in the future, as i took up plenty of my time
    today. :-)

    Cheers

    Skavengur Guest

  3. #3

    Default Re: havok "floating" platforms - need some advice

    I've posted a demo which uses a technique similar to the one you describe, at http://nonlinear.openspark.com/tips/3D/platform/

    Source code available.
    openspark Guest

Similar Threads

  1. "floating" table?
    By kcrockett in forum Macromedia Dynamic HTML
    Replies: 5
    Last Post: February 2nd, 05:43 PM
  2. How "tough" is it to develop in Shockwave and Havok?
    By LittleOl'Me in forum Macromedia Director 3D
    Replies: 0
    Last Post: June 18th, 02:57 PM
  3. Replies: 0
    Last Post: August 25th, 03:50 PM
  4. Replies: 2
    Last Post: August 20th, 09:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139