How to create a projectile motion of a cannonball in top down view?

In the below code, is the method I use to move a bullet to its destination. But the problem is I want to create a cannonball bullet which it has a projectile motion. How do I create these tricks to make a cannon ball projectile motion like the image below.

public Vector2 getVelocity(Vector2 currentPosition, Vector2 targetPosition) {     Vector2 targetDirection = targetPosition.cpy().sub(currentPosition);     return targetDirection             .nor(); }  body.setLinearVelocity(getVelocity(bulletPosition, destination)); 

How to create a projectile motion of a cannonball in top down view?

Replay

Category: java Time: 2016-07-30 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.207 (s). 12 q(s)