Forums

OverviewV-Play 1 SupportHow to get collision impulse › Reply To: How to get collision impulse

OverviewV-Play 1 SupportHow to get collision impulse › Reply To: How to get collision impulse
#5565

David

Hi Thomas,

you can see Ball.qml of the VPong demo which uses circleCollider.body.linearVelocity to determine the velocity of the ball which is decreased when it hits another object. There is also a counter available which increases the final force of the ball when the limit is reached. A combination of those properties could also be a solution for your Problem. Furthermore, you can start the timer with fixture.onBeginContact and stop it in fixture.onEndContact so you can also use the information for the duration of the collision.

Cheers,

David

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
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support