OverviewFelgo 1 Support › Rotation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #4304



    We would like to shoot a dartarrow which has a physically correct rotation while in the air. e.g. when we shoot it straight up in the air, it should come down with it’s head first (cause this part is the heaviest of the arrow).
    Furthermore we have a bouncer-entity in our game, which, as it’s name indicates, bounces the arrow back and gives it another direction. If we now set the body.fixedRotation-property false, it rotates like crazy after the collision, but we would like it to fly in a steady manner after colliding with a bouncer. But setting it to true allows absolutely no rotation.
    How can we make this happen?



    Felgo Team

    Hi Simon,

    I would do the bouncer not with a real physics object, because the behavior you want is actually not real physics-based. Instead, make the bouncer a sensor and give the arrow an impulse or force on collision with it and set its position & rotation to the start value you want to mimic your behavior. It might also be an option to not use physics for your movement at all, but calculate the positions by yourself so it behaves as you want it to.

    Cheers, Chris

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support