Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gregacuna on November 21, 2019, 01:16:33 AM

Title: Shooting Projectile ONLY on X
Post by: gregacuna on November 21, 2019, 01:16:33 AM
I'm using Corgi Engine and Unity for the new platform game. As I'm setting up the player I want to animate projectiles coming out of the player's hand which is animated with a swish forward. I have added an empty game object to the hand bone so the projectiles are emitted from there.

PROBLEM: The projectiles (2d sprites) are heading in the direction of the rotation of the empty connected to the hand bone. As can be seen in the screen capture show the view from TOP. The projectile is not moving straight forward from the character.

NEEDED: I want to have them go straight forward depending on the direction the player is facing staying on a line along the X axis without any deviations on Y or Z. I've tried several ideas, but even when I get a straight line it is going off at an angle instead of horizontal and in line with the view.
Title: Re: Shooting Projectile ONLY on X
Post by: jeanfabre on November 21, 2019, 02:51:43 AM
Hi,

 maybe this sample on the ecosystem is the key for you:

(https://i.imgur.com/DGLHAC2.png)

Bye,

 Jean