跳至主內容

搜尋

Sync object motion on collision

  • IAMDOODLEBUG

    How many moving targets will there be per level? Could you not create various trigger zones on the arrow which detect a specific target and upon detection activate a follower which is assigned that the specific target? not very efficient but should work!

  • Demofiend

    Thanks for the response @IAMDOODLEBUG. To be clear, collision detection is functioning fine with impact sensors, so the number of targets isn’t necessarily my issue. My problem is with directly applying the speed and direction of the target to the collided arrows. I will experiment with the follower gadget though, thank you for the suggestion.

  • Supposer

    There are a few ways of doing this, but here's one you could try:

    Add a tag to the moving target (inside the same group). It doesn't matter where it is as long as it moves with the target. Add a wireless receiver, with the zone around the target, with the tag's position being sent through it.

    In the arrow, add a tag in the same group. Again, doesn't matter too much where it is. But here, it's worth snapping its white-dot position to a grid point. Add a follower, and set its white-dot position to the exact same point as the tag. Add a wireless transmitter to receive the target's position.

    Set up a calculator to subtract the arrow tag position from the target position to find the offset. Send that through a signal manipulator and then freeze it (you may have to split and put the values through multiple sig-manips and then combine them again). Now you have the static offset of the arrow relative to the target.

    Add the offset position to the current target position to find the scene position, and feed that into the follower's target position.

    On collision, turn off "movable" if it's on. And turn on a follower.

    This *should* work, though I haven't tested it for now. Hope this helps. ^^

登入寫評論。