User Tag List

Results 1 to 2 of 2

Thread: Movement Prediction using bezier curves

  1. #1
    No Products Registered

    Join Date
    Jun 2006
    0 Post(s)
    0 Thread(s)

    Movement Prediction using bezier curves

    Hi there,

    I'm essentially trying to make a Dead Reckoning engine (a movement tracking system for online use), but for now im just simulating this offline by having a moving character (which uses 0 gravity 360degrees spaceship/asteroids style movement) and having a "ghost" that follows the ship, but the ghost only gets updates on the original ship's x,y positions, x,y movement vectors, his rotation speed etc. every x amount of milleseconds.

    Basically i'm trying to make the ghost roughly follow the ship (delay is expected). It is possible to make educated geusses as to how the original ship would have moved, given a 2 sets of x/y pos and x/y vectors (speed and direction) information. I've tried to illustrate the problem better in the image below. The arrows represent the vectors.

    Basically, I'm uncertain of how best to construct the curve (bezier curve?), and how to tie in acceleration/changes in speed into the curve.

    My apologies if i have explained this badly. Its quite complex!

  2. #2
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Terra australis incognito
    0 Post(s)
    0 Thread(s)

    Re: Movement Prediction using bezier curves

    Hi there [Alee], There is an extension called 'move by bezier curve' which allows you to define a curve with infinite parameters, you could use some clever math to constantly add parameters to a never completing curve, or simple average 2 objects positions; one on the current curve the other on the next curve. The object also has options to slowdown when taking corners and more.

    But I've got to warn you; I've used this for dead reckoning before and it just get's more and more complex; MooGame had this function built in, maybe have poke around with it; even just seeing what parameters it uses should give you some ideas :wink:

    Good luck.

    {for anyone else reading this thread; right click the image and select 'view image' to read the text in it}

Similar Threads

  1. Bezier curve movement in Flash
    By arthurh in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 10th February 2012, 06:39 AM
  2. Bézier Curves for Dummies (TDC version)
    By Dines in forum Articles
    Replies: 17
    Last Post: 10th June 2008, 01:09 PM
  3. MooApi: Using Bezier Curves for dead reckoning
    By Dynamite in forum Articles
    Replies: 5
    Last Post: 8th June 2008, 09:48 AM
  4. Drawing curves with the Overlay
    By Czentnar in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 14th September 2007, 06:39 PM
  5. Bezier Curves in MMF
    By dustingunn in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 4th February 2007, 12:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts