Get speed of mouse applied to actor

I have an actor's position constrained to my mouse. I'm using that actor to collide into things. Think of your finger slashing through things in Fruit Ninja, but in my case when I impact something I spawn a new actor and give it a speed to fly away. What I'm trying to figure out is if there is a way I can get the speed of my mouse movement and have it be applied to the spawned actor's new velocity? Any ideas?

Comments

  • mrpacogpmrpacogp Member Posts: 400
    Can you test to create a game attrib, called velocity transfered or something.
    Constraing linear motion x to vecolity.
    When one actor its destroyed and spawned the other you can take it from that.
  • OrbInteractiveOrbInteractive Member Posts: 14
    Good suggestion. I gave it a quick try and it didn't seem to work however. I wasn't getting any velocity. I only have a few minutes though so will look at it more when I'm back from Xmas.
  • OrbInteractiveOrbInteractive Member Posts: 14
    edited December 2012
    Well, I could not get that suggestion to work Mrpacogp. Any other idea guys?

    Recap, I'm trying to bat things around.
Sign In or Register to comment.