2 Replies Latest reply on Mar 28, 2008 3:36 PM by KingDruid

    Rigid bodies with the new physics engine

    KingDruid
      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)