Creating Linear Dashpots in my scene

Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default Creating Linear Dashpots in my scene

    Hey all,

    I'm trying to use linear dashpots in my scene using this code

    linearDashpot = hk.makeLinearDashpot ("MyDash", "hkCabin", "hkArm1")
    linearDashpot.strength = 40
    linearDashpot.pointA = vector (0.0, 0, 5)
    linearDashpot.damping = 0.5

    Unfort, when I run it, it comes back saying
    "Script error: Value out of range
    linearDashpot = hk.makeLinearDashpot ("MyDash", "hkCabin", "hkArm1")
    -2147219496"

    Any solutions?

    AndrewNock Guest

  2. Similar Questions and Discussions

    1. Help with Linear Dashpots
      Hi there, First what I am trying to do is I would like to apply four linear dashpots, one for each wheel and 4 angular dahspots, one for each...
    2. Havok dashpots - connect to origin?
      Just reading up on these dashpot things, and realizing why setups that work perfectly in Max cannot be reproduced via lingo in Director - a dashpot...
    3. movieclip scene to scene navigation
      I have three scenes. There is a movie clip, mc_navigate, which has 2 buttons nested with in. I would like to use these buttons to navigate from...
    4. Change scene and start mc on the new scene...
      Hi, I've got one swf with two scenes. The scene2 contains all the content of my site. This scene have a navigator (mc) with buttons holding...
    5. One frame scene verses alot of frames scene
      Hello I have a question. I am working on my own web design website which is www.smoovejcmedia.tfang.org. On my first scene and its only that scene I...
  3. #2

    Default Re: Creating Linear Dashpots in my scene

    AndrewNock wrote:
    > Hey all,
    >
    > I'm trying to use linear dashpots in my scene using this code
    >
    > linearDashpot = hk.makeLinearDashpot ("MyDash", "hkCabin", "hkArm1")
    > linearDashpot.strength = 40
    > linearDashpot.pointA = vector (0.0, 0, 5)
    > linearDashpot.damping = 0.5
    >
    > Unfort, when I run it, it comes back saying
    > "Script error: Value out of range
    > linearDashpot = hk.makeLinearDashpot ("MyDash", "hkCabin", "hkArm1")
    > -2147219496"
    >
    > Any solutions?
    >
    Hi. Check if "hkCabin" and "hkArm1" are RBs. Maybe "hkArm1" it´s not a
    RB and Havok expects a worldPoint value as parameter instead of a RB.

    HTH,
    --
    Agustín María Rodríguez

    [url]www.onwine.com.ar[/url] > Macromedia Director demos & code
    Agustín María Rodríguez Guest

  4. #3

    Default Re: Creating Linear Dashpots in my scene

    thanks for that.

    I used the world point value and something works (don't get an error at least)!

    worldPoint = p3Dmember.model("Rope").transform.position
    otherPoint = "ArmToRope"
    dashpot = hk.makeLinearDashpot( "DashpotName", otherPoint, worldPoint )
    dashpot.strength = 10
    dashpot.damping = 0

    What I want is for the rope to be 'attached' to the 'ArmToRope' (simple box at
    the top of the crane). It keeps detaching itself though....

    AndrewNock Guest

Posting Permissions

  • You may not post new threads
  • You may 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