Quantcast
Channel: Questions in topic: "mass"
Viewing all articles
Browse latest Browse all 157

How to make a rigid body move along a specific path using my mouse?

$
0
0
The game features 2d circular characters that are supposed to have rectangular shaped weapons that orbit the character. The weapon is supposed to follow and point towards the mouse, but still travels along a path around the character. ![alt text][1] [1]: /storage/temp/147221-sword-game-picture.png (Sorry i currently don't have access to my pc right now so here is a little ms paint thing) However one of the big issues is that i would like this weapon to be a physics object with a high mass, as to simulate the physics of a heavy sword that you must use to knock other enemy's swords away so that you can land a clean hit. I eventually also have to make enemies with their own swords, so it would be ideal if i could easily edit the path i want the sword to take. For example: if the enemy is within x distance of the player, the enemy should move their sword to x position/angle at x speed. Any suggestion helps!

Viewing all articles
Browse latest Browse all 157

Trending Articles