Professional Web Applications Themes

Rigid bodies with the new physics engine - Macromedia Director 3D

I wrote the following to adobe, hopefully they answer: made a U shape object and a small ball that fits within it. I created rigidbodies for both of them and told them to be #concave, but the U shaped object acts like a box no matter what I try. The ball rolls fine on the floor, but it will not roll under the U I made. Is this a bug? Can we only create round and square shapes? I was able to do this before with the Havok xtra. Here is my code m = s.model("Frame") m.addModifier(#meshdeform) FrameRB = PhysicsWorld.createRigidBody("Frame","Frame", ...

  1. #1

    Default Rigid bodies with the new physics engine

    I wrote the following to adobe, hopefully they answer:

    made a U shape object and a small ball that fits within it. I created
    rigidbodies for both of them and told them to be #concave, but the U shaped
    object acts like a box no matter what I try. The ball rolls fine on the floor,
    but it will not roll under the U I made. Is this a bug? Can we only create
    round and square shapes? I was able to do this before with the Havok xtra.

    Here is my code
    m = s.model("Frame")
    m.addModifier(#meshdeform)
    FrameRB = PhysicsWorld.createRigidBody("Frame","Frame", #convexShape,
    #dynamic)

    m = s.model("FGuide")
    m.addModifier(#meshdeform)
    FGuideRB = PhysicsWorld.createRigidBody("FGuide","FGuide",
    #convexShape, #dynamic)

    Here is the init code:
    PhysicsWorld = member( "PhysicsWorld" )

    member("PhysicsWorld").init(member("W3D"),vector(1 .0,1.0,1.0),#automatic,0.03,3)
    PhysicsWorld.gravity = vector( 0.0000, 0.0000,-45.0000)

    KingDruid Guest

  2. #2

    Default Re: Rigid bodies with the new physics engine

    You're using #convexShape in your code, it has to be #concaveShape and concave rigid bodies have to be #static.
    Glehenna Guest

  3. #3

    Default Re: Rigid bodies with the new physics engine

    So I guess it is not possible to have a dynamic body as a concaveshape? I know I could do it with Havok. That s*** I would like to use the new engine, but I wont be able to.
    KingDruid Guest

Similar Threads

  1. Moving moveable rigid bodies - help please...
    By mbrown174 in forum Macromedia Director 3D
    Replies: 1
    Last Post: March 21st, 02:18 AM
  2. Moving grouped fixed rigid bodies with lingo? Maze ball game
    By DonRelyea webforumsuser@macromedia.com in forum Macromedia Director 3D
    Replies: 1
    Last Post: October 10th, 06:13 PM
  3. Moving Rigid Bodies with Havok
    By Stewart Coles in forum Macromedia Director 3D
    Replies: 0
    Last Post: September 11th, 05:02 PM
  4. Contax Bodies
    By Miro in forum Photography
    Replies: 5
    Last Post: August 28th, 03:38 PM
  5. pinned rigid body collision?
    By sonicani webforumsuser@macromedia.com in forum Macromedia Director 3D
    Replies: 0
    Last Post: July 25th, 06:24 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