How does one create their own interpolation

I am currently working on a tile-based environment in which the user controls a tank. I have been attempting to use interpolators to smooth out the movement between tiles, but I have had a lot of trouble acheiving the desired effects. From what I have gathered from various posts is that the interpolator classes are only useful for repeating animations (please correct me if this statement is wrong).
My question then is:
How does one create their own or methods which simulates the interpolation behavior; I am particularly interested in the PositionInterpolator for translating the missles fired by the tank.
I attempted to do this several times, but I have failed. Here is one of my attempts:
public void fire()
     show(); //show the missle geometry
     int TRANSLATION_TIME = 1000; //blast alive for 5 seconds
     float DISTANCE = 20.0f; //missle travels a distance of 20 units
     //interpolate path
     long startTime = System.currentTimeMillis();
     long endTime = startTime +TRANSLATION_TIME;
     long interval = endTime - startTime;
     float translationPercent;
     float lastTransPercent = 0;
     float dist;
     Transform3D translate = new Transform3D();
     while(System.currentTimeMillis() < endTime && !collision)
     interval = System.currentTimeMillis() - startTime;
     translationPercent = (float)interval/TRANSLATION_TIME;
     dist = DISTANCE*(translationPercent - lastTransPercent);
     lastTransPercent = translationPercent;
     translate.setTranslation(new Vector3f(0.0f, 0.0f, -dist));
     interpolate(translate);
public void interpolate(Transform3D translate)
     Transform3D t3d = new Transform3D();
     missleTG.getTransform(t3d);
     t3d.mul(translate);
     missleTG.setTransform(t3d);     
What happens using this code is that the missle just waits at its initial location until the TRANSLATION_TIME has passed, and then jumps to the final position -- the missle does not smoothly translate to the final location. Are there any explainations out there for this behaviors.
-Thanks in advance

Hi,
I'm also working on a game environment where the user can move around in a spaceship and fire missiles etc...
I haven't looked much at interpolators, but I use Behaviors for everything I need to move/rotate/scale...
You can for example create your own behavior (by extending the Behavior class) and set it up to move the missile when you press a specific key, or when any other kind of event takes place...
You should check the documentation for the Behavior class.
Hope this helps...

Similar Messages

  • How does one create a "check box" in a cell?

    How does one create a "check box" in a cell?

    select the cell then open the cell formatter:
    process should be similar in the iOS version.  I do not have any iOS devices with Numbers so I cannot check.  I did find this link that may help:
    http://support.apple.com/kb/PH3374?viewlocale=en_US

  • How does one create folders?

    How does one create folders?

    Select Documents at the left. Click the Edit button (upper right). Click the New Folder icon at the top.

  • How does one pay their bill

    I have been a Verizon wireless customer for10+ years and switched to FIOS internet and TV a few years ago.  When I first switched I set up the one bill account, where it then took me over 8 hours on the phone to finally get FIOS and wireless Verizon to acknowledge each other exists.  All went well until thismonth's billing cycle.  When I went to log into my account, the system decided to make things more convenient for me by no longer taking my old user ID and password, but giving me the opportunity to get a new user name and password.  All I needed to do was enter my home phone land line number, which I don't have a land line, or my account number with the new user ID which I can't get because I can't log in to take advantage of this wonderful opportunity.  After spending over an hour on the phone listening to the electronically generated drone of the voice telling me all agents were busy, mind you this was starting at 8:45, 15 min prior to the go time, and listening to the wail of the Kenny G music, the agent told me that it wasn't their department.  After another 40+ minutes of aural torture, I gave up, went out and shot several furry creatures and contemplated the meaning of life.  How does one pay their bill under these circumstances?  I even tried to use the 969 phony home phone  number they gave me.  What are my options and yes, in one month I will be canceling anything to do with Verizon TV and internet.

    Sorry you are having difficulty, an agent with access to your account will reach out to you directly by email, private message in the Forums and/or the billing telephone number on your Verizon account for more information to help you resolve your issue.

  • How does one create LOV Map between 2 fields for custom lookup mapping

    Hi there
    In Internet Expenses, Expense Report Line Detail we have two unrelated fields; namely Expense Location & Tax Code.
    The requirement is to map a default tax code to locations; basically when a user enters Expense Location then the mapped tax code value should default into field Tax Code.
    The location-tax code mapping is stored in a custom lookup (FND_LOOKUP_VALUES).
    My question is how does one go about implementing this?  For example is it possbile to create a new (hidden) LOV based on the lookup mapping & then create a Personalization LOV Mapping between the 3 LOV...  Or is it necessary to modify the Tax Code drop down Message Choice in JDeveloper?  Of course details are appreciated!
    FYI below is the relevant Personalization Structure from "Personalize Stack Layout: (NormalDetails)".
    Message Lov Input: Expense Location
    - Lov Mappings
    -- Lov Map: (lovMap1)
    -- Lov Map: (lovMap2)
    -- Lov Map: (lovMap3)
    - Message Text Input: Expense Location
    - Message Styled Text: Transaction Location
    - Message Text Input: Merchant Name Yes
    - Message Styled Text: Description
    - Message Check Box: Original Receipt Missing Yes
    - Message Choice: Tax Code
    - Message Check Box: Amount Includes Tax
    - Message Choice: Tax Code
    Many thanks
    G

    Hello all
    The correct & supported method is this:
    Extend the location LOV in JDeveloper & add a "default tax" attribute, this could be derived from a new location DFF storing the default tax code for each location. Now simply create a location Personalization LOV Map which takes this new location lov tax attribute & target it to the tax message choice field.
    That's my 2c worth anyway, so please give comment if you feel there is a better way.
    There is just one more little problem however... The requirement has changed! Now we require the tax code to default according to not one location field, but other fields too. For example if the user selects Expense Type of Beverage & Location of Netherlands then Tax Code should be NL19%, for Expense Type of Hotel then it should be NL6%; if the user ticks "Missing Receipt" field then it should over ride all others & set the code to NL0%.
    Any ideas?
    Many thanks
    G
    Edited by: user13363208 on 11-Aug-2010 06:51

  • How does one access their images in their libraries in Desktop Adobe Photoshop that are connected to their Mobile Adobe Shape?

    So
    I have Adobe Shape on my iphone, and in my Creative Cloud on the web it can access the images ive made. BUT, these images wont show up in my library on Photoshop on my computer and i cant seem to save them from the creative cloud on the web.
    How does one get from A to B?
    Thankyou
    Victoria

    Hi Victoria and welcome to the forum.
    I had to Google Shape but it looks interesting, and dies use the CC Libraries.  I am a big fan of CC Libraries, but have only used them between apps on the same machine.  So it is just a matter of see how they work between different systems
    Illustrator Help | Creative Cloud libraries - collaborate, sync, and share assets
    In my experience, I simply drag an asset onto the Library in one app, and it is there in my other apps.  But I have to make sure I am looking at the same library name on both computers.  Now I have been confused over syncing before, but I suspect that if you open the Application Manager and click on the little Cog icon, and in the Files tab make sure Sync is checked.  Otherwise you might as well read the help files.
    Sync digital assets in Adobe files and apps | Creative Cloud Libraries
    Good luck

  • How does one create a GROUP mailing list from an e-mail message ? ?

    I am having no end of frustration trying to figure out - using the latest versions of Apple Mail and Apple Address book in side-by-side windows, t he following:
    How to select; then 'drag & drop' a list of email addresses from an incoming email message I am reading, so that I can create in my own address book a duplicate "Group" list bearing all the addresses that got the message.
    I am sure I have been able in the past to use simple drag-n-drop technique between the mail window and the newly created "Group" window in Address Book, but it won't work this time .
    Is there a script or a third party app somewhere that will lift addresses out of the "TO" and "c.c." fields in an Apple Mail message and import them into a designated (new) 'Group' list in Address Book.
    Or is there a way to create a CSV file from an email message - if that will do the trick ?

    Mailscript's Add Addresses script should open a window with all the addresses in the email listed. You can select the ones you want to import, you can choose the group or create a new one, and you can pick the label for the email address. It will stay open so that you can add different emails to different groups.
    Your description doesn't sound anything like Mail Scripts.

  • How does one create navigation in a pdf?

    Hello
    I'm editing a very long Word document with hundreds of bookmarks leading to Glossary definitions, which I've turned into a pdf. I now want to create something for the reader, once they've read the Glossary item, to click on which will automatically take them back to their original page.
    I know there is a way to do in Acrobat Professional 9. It's something to do with Bookmark Properties and Execute a Menu Item. I can find that dialogue box, but I don't know what to do when I get there.
    Is there anyone who could kindly either give me a step by step guide to how to achieve this .....or even point me in the direction to some sort of tutorial on it?
    Many thanks!

    I'm sorry, this doesn't help me. You're assuming more knowledge on my part than I actually have. I'm afraid when you say 'look at' Acrobat Javascript Reference, it means nothing to me. I could look at it. But how would I know how to find this particular function within it? It's like saying to someone who knows nothing about car mechanics, 'look at the engine'. Giving me a page load of Google links is similar to that ...which one do I go to, and where do I look when I get there? Also, these links only go to sites referencing Acrobat 7 and 8, while I'm using Acrobat 9.
    I'm a writer/editor who is editing an e-book in Word and then turning it into a pdf. I'm not a techie person at all.
    But I know whereabouts on Acrobat Pro 9 to find this function: You
    1. Click on Bookmark Properties
    2. Execute a Menu Item
    3. Edit and from that drop down menu you can
    4. Select View>Go To>Previous View.
    It's just that when I do it, nothing happens. So there is a step missing or even several steps missing, that I don't know about. I need someone to give me those steps - 1, 2 and 3 and so on.
    There must be a tutorial on this somewhere....

  • HT4972 How does one update their iPad to iOS5 without losing prior Apps, notes & content?

    Need to update to iOS5 or iOS6 put upon doing so, it stated it will erase all my Apps and Content.   I have a years worth of notes in Note Taker HD.......do not want to lose.....any options?

    Well, I'm going to go scour the internet for a while and see what kind of tools I can find. I'll come back with a solution eventually, but this is something that apple needs to take care of. To date, the most frightening and inconvinient processes ever performed with apple products are the iTunes sync and upgrade processes. I find it wrong that I would ever have to void my own warranty to deal with something so simple and so common.
    Don't get me wrong, I love apple, more than anything, but this is their one big mess up. I pray they figure it out soon.
    I'll be back later.

  • Step 1 - how does one create a video track in FCP X?

    Just purchased FCP X & wow ... sparing all the rants I've been hearing, I'm sure it can do what I'm looking for, just that all the features are now hidden from view.
    Step 1 - anyone know how to create additional video tracks?

    Tried that & a Pandora's box of other questions opened up. Doing some research, watching videos, etc... just need to scrap most/all knowledge of previous FCP versions & start from scratch with this new interface philosophy it would seem.
    One other symptom that seems disturbing: sometimes activiating a feature does not activate a feature.
    Example, I wanted to silence the audio while skimming, so unchecked "audio skimming" in the view menu.
    Audio still plays while skimming.
    Decided to try unchecking all four options at the bottom of the view menu (skimming, clip skimming, audio skimming, snapping).
    Nothing changed.
    I can still skim clips, and audio still plays.
    Why would this happen?

  • How does one create a user with a null password in iManager?

    I'm setting up LDAP authentication and need to create a user with a null password.
    If you do not put a password in the password field when creating the user in iManager, a message pops up stating, No password has been defined for this user.
    You are given a choice of:
    Allow user to log in without a password
    - or -
    Do not allow user to log in without a password
    If you choose Do not allow user to log in without a password, there are no complaints.
    When I look at the properties of the newly-created user, however, I note that the "Require a password" checkbox is not filled in.
    That would imply that the answer to the question posed during the user's creation is moot; either answer produces a user that can log in without a password.
    I can then assign the Common Proxy password policy to the user, which does not dictate a minimum length for a password.
    From that point forward, any attempts to leave the password field blank in iManager results in another pop-up message stating:
    "Failure to enter a password will allow the user to login without a password."
    That implies that no password exists for the user, as opposed to a null password.
    Is that correct or are the public and private key for the user object still generated?

    If you do not specify a password, which is what happens when you select
    the 'Do not allow user to log in without a password' option initially, the
    user cannot login. A user with no password (meaning no password exists at
    all, similar to a 'null' in programming) cannot login with a password
    because, of course, they do not have a password.
    If you specify a zero-length string as the password you are effectively
    (and usually) creating a proxy user, for example to be used for the LDAP
    service in eDirectory, and this user can login typing in a password (since
    typing would imply one or more characters) but nevertheless there IS a
    password, but it happens that it is zero-length, so typing nothing for the
    password IS submitting the correct password. This is the option carried
    out by eDirectory when you choose, 'Allow user to log in without a
    password' (the prompt is a little misleading with its "without a password"
    phrase).
    Once you assign a UP policy you are telling the system that there SHOULD
    be a password on the user (and with common proxy there definitely should
    be, probably a strong one at that) so the only option now is whether or
    not the password is zero-length or longer. Obviously longer is the
    correct option for security reasons.
    Good luck.
    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...

  • How does one Create Bootable DVD from downloaded iso image in Windows?

    I have a completely empty system I want to load Solaris Express on. I have access to web on a Windows XP machine and have downloaded the Solaris iso image. Using WindowsXP facilities simply copies the iso image as an intact iso image file and resulting disc is not bootable. Windows knowledge base very conveniently says that what happened to me is what happens. No obvious referral to how to do it....
    A) So for a non-Windows savy person who does not want to become Windows savy (That is why I downloaded Solaris!) Where is a set of instructions on how to (inside Windows XP) "extract" an iso image to a CD / DVD disk so it will be bootable?
    B) It sure would be nice if Solaris were able to be loaded onto a USB Flash drive and booted at will from any USB computer. Just plug it in and boot. Has this been done?
    C) Getting a physical disk by snail mail from Sun is very slow for me.... (3 weeks and still watching the mail box...)

    A) So for a non-Windows savy person who does not want to become Windows savy (That is why I downloaded Solaris!) Where is a set > of instructions on how to (inside Windows XP) "extract" an iso image to a CD / DVD disk so it will be bootable?http://www.sun.com/software/solaris/download_instruction.xml
    You probably copied the .iso file as one single very large file onto media. Instead, you can use a utility such as Roxio DVD Creator or Nero (or freeware like cdrecord) , and select the option to burn an image that already exists. No special boot options are needed, because the ISO image already contains the boot information needed.
    B) It sure would be nice if Solaris were able to be loaded onto a USB Flash drive and booted at will from any USB computer. Just plug > it in and boot. Has this been done?With the Newboot project introduced into Solaris Express, I believe it is now possible. I'm not a USB expert, though, so cannot say for sure.
    C) Getting a physical disk by snail mail from Sun is very slow for me.... (3 weeks and still watching the mail box...)I can't comment on that.
    -- Alan

  • How does one create age restricted articles inside DPS?

    Hello all,
    I need to know how to create an article that is age restricted.
    Are there any setting within InDesign etc. that can do this, or shall I use HTML in a web overlay?
    Thoughts or example etc., greatly received and much appreciated.
    Cheers,
    Billy.

    I think the best that you can do is set a warning message covering the page inside a MSO with 2 buttons, one for above the age limits and continue to the article , the other is for under age and has navto action to the next article.

  • How does one create product keys when developing 3rd party Addons

    HI
    DOes anyone have experience in developing 3rd party addons? How do you manage liscense keys, is there a function module which can generate the key?
    and buildingin a expiry date so that a customer can note hack a table entry to continue?
    Thanks
    Henry

    woodwing seems to have a nice toolset to make it easier for sure... but I'm not sure that is the correct direction for
    us.  As we don't want to have to submit anything to Apple.  Our needs are for internal use only and we would not be creating content for the public.
    I don't follow the ePup process fully...  PDF's we can load right onto the iPad.  It's a real shame about flash not working as we can make some very slick flash content right out of indesign with little effort.  (maybe the direction should be a Flash to HTML5 converter?  Goto page commands assigned to buttons would be wonderfull if they worked but when you export the doc to PDF Acrobat complains that it is not compatible.  When we export to flash it works like a charm on a PC.
    Haven't found a good gudie for bookmarks yet... and if that would give us buttons on each page to move the user back and forth through the document.

  • Newbi Question:  How does one create a similar page to this using APEX 3.1?

    Hi,
    I am trying to create a help document with screen shoots inside our APEX web application and I am hamstrung by the type of Region and Item objects available to me. When I tried to create HTML region I was limited to how much html characters I can put in the source. When I look into the item menu nothing seems to allow me to stick in large chunk of HTML code either.
    A little searching on this forum and I came across this page: http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm#t
    It is exactly the type of page I want to create with lots of text and screen shots and I presume that it is built within APEX? So my questions is: How did they do this? Did they use tools available within APEX or some external tool? Was all this outputted using BLOB and Htp("") and PL/SQL? I am trying hard to avoid having to do that.
    I was also unable to stick in an in image into my page using instruction from http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/ui.htm#CBBHGJCH which left me pretty frustrated. (external amazon gif worked).
    Thanks for any help,
    Wayne

    Wayne,
    I am glad that you got images to display. I am not sure what kind of html report you want to display, there is a limit of number of characters in a region its 32767 characters, so if you want to display large html file you can create html region with no template and limit each region to 30,000 characters and create as many region as you want.
    If you want to display data from any table ( as per the first url) you can create SQL reports, something like
    select ename
         , deptno
         , sal
         , case
              when ename = 'SCOTT' then '<img src="#WORKSPACE_IMAGES#us_flag.gif" alt="Image Title">'
              when ename = 'SMITH'  then '<img src="#WORKSPACE_IMAGES#chants.gif" alt="Image Title">'
              when ename = 'MARTIN' then '<img src="#WORKSPACE_IMAGES#cloche.gif" alt="Image Title">'
              when ename = 'MILLER' then '<img src="#WORKSPACE_IMAGES#chandelles.gif" alt="Image Title">'
              when ename = 'JONES' then  '<img src="#WORKSPACE_IMAGES#shoe.gif" alt="Image Title">'
              else '<img src="#WORKSPACE_IMAGES#hallo.gif" alt="Image Title">'
         end  image
    from empThanks,
    Manish

Maybe you are looking for

  • Accessing bean attributes in a JSP

    Hi, I am sending a bean from a Servlet to a JSP as follows: request.setAttribute("newclientTEST", ro_client); this.getServletContext().getRequestDispatcher("/jsp/private/research/UserAdded.jsp").forward(request, response);I can then access the bean i

  • Edit the exchange rate during LIV

    Dear all, I created a import PO in which the exchange rate is not fixed. When I try to post the invoice in MIRO against this import PO the exchange rate in the details tab is non editable ie. grey. Ideally the exchange rate shall be editable unless i

  • Connecting a 35670A to labview signalexpress

    Hello all, I am rather new to using signal express, First problem I have is I will be using the LE version of signal express, will this program be sufficient to run a VI for the 35670A, Also it says you get a 30day trial which I have not for some rea

  • Validating Screen Fields in FD32 - BTE 1520

    Hello everyone, I have a requirement to make various checks before saving in FD32. For example I want to make sure that KNKK-DBEKR will be less than or equal to KNKK-KLIMK. I have searched SCN and I have implemented BTE 1520 (you can see an example t

  • Duplicate entries in mms_rbs_subscription table

    We use a mobile iOS Application which is connected a SUP 2.1 Server. The Application runs fine until a couple of weeks but now we got some synchronisation problems. Some users don't get data changes on their devices. Probably we have identified one p