1 Reply Latest reply on Oct 17, 2006 7:49 AM by tedalde2

    A fatal error has occured. Director will quit now.

    rul_a
      I use havok and I have problem:
      'A fatal error has occured. Director will quit now.'
      Which one is wrong?

      Please check this script:

      --I wrote all property ofcourse, in my script

      on beginSprite me
      pSprite = sprite(me.spriteNum)
      pMember = pSprite.member
      pHavok = member("HavokMember")

      pMember.resetWorld()

      pCamera = pSprite.camera
      me.setupCamera()
      end

      on enterFrame me
      me.createPhysicalObjects()
      end

      on createPhysicalObjects me
      --motor
      m = pMember.model("gMerah")
      m.addModifier(#meshdeform)
      rb = pHavok.makeMovableRigidBody(m.name, 100)

      --road
      m = pMember.model("jalan")
      m.addModifier(#meshdeform)
      rb = pHavok.makeFixedRigidBody(m.name)

      --boundary
      m = pMember.model("pagar")
      m.addModifier(#meshdeform)
      rb = pHavok.makeFixedRigidBody(m.name)

      end

      on setupCamera me
      pModel = pMember.model("gMerah")
      newCam = pMember.newCamera("hangCamera")
      newCam.transform.position = pModel.transform.position + vector(40.000, 22.000, -1.000)

      newCam.transform.rotation = vector(0.000, 90.000, 0.000)

      pSprite.camera = pMember.camera("hangCamera")

      pModel.addChild(pMember.camera("hangCamera"), #preserveParent)

      end

      Please let me know.
      Thanks in advance.