Bombix95 Posted June 10, 2014 Share Posted June 10, 2014 Hi guys, i'm here asking your help. I need to spawn a projectile (id 19 the rocket) from an object position and rotation, i'll explain better: I have a vehicle, with an object attached to it that i rotate by input. Now this object has another object attached to it (a orange marker) that emulates a muzzle point, now what i'm trying to do is to spawn a rocket (when player presses the left mouse button) at the 'muzzle' location and rotation, like a Tank shell. I've already tried : ==> putting my player as the creator of the projectile, the result is that the rocket is spawned based on camera look rotation (u shoot where ur looking) ==> putting my vehicle as the creator of the projectile, the result is that the rocket is spawned based on the vehicle forward look (u shoot straight forward) if anyone can lead me in the right direction I'd be grateful Thanks in advance Bye Link to comment
Moderators Citizen Posted June 10, 2014 Moderators Share Posted June 10, 2014 Then override the starting rotation of that projectile by specifying the optional arguments: rotX, rotY, rotZ: float starting rotation for the projectile. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now