Questions tagged [projectile]

A projectile refers to an object, point type or solid, that was launched into an orbit or ballistic trajectory and is typically traveling at high velocity.

A projectile refers to an object, point type or solid, that was launched into an orbit or ballistic trajectory and is typically traveling at high velocity.

252 questions
4
votes
1 answer

how to an object sticks to another object and these come back to start point in Unity

I would like to catch an object with another object. And then carry it to the start point of first object, in 2D. I'm throwing an object to another object with a constant velocity. The first one collides with a second one, after that I defined…
OrGor
  • 51
  • 6
3
votes
2 answers

My projectile system not working, what's wrong with it, how can I fix it?

I'm making an asteroid shooter system, that can shoot projectiles where the player is facing, however, when you shoot (press space), the projectile does not move. I've tried to add cosine and sine to the X and Y, but that obviously doesn't work. I…
3
votes
1 answer

Emacs - How to automate adding new projects in BOTH - projectile and treemacs?

My workflow of using Emacs involve checking of many different projects. They are added and removed pretty frequently. This is very annoying and time consuming at the moment: projectile-add-known-project and set a path to a new…
BinaryButterfly
  • 18,137
  • 13
  • 50
  • 91
3
votes
3 answers

How to use emacs projectile-find-file without "full path"?

I'm new to Emacs, so recently I faced the problem of "how to quickly find and open a file in emacs?" (something like Go-to in sublime/atom, Cmd-P). As a solution I'm using projectile package, but its behaviour is slightly different in the following…
3
votes
3 answers

Swift 3 Bullet Firing Delay

In my game, you tap anywhere on the screen and a bullet goes in that direction. The only problem is that you can shoot as fast as you can tap. Is there any way to add a delay after each shot. So I would like to shoot, wait 1 second then shoot. Here…
Luke Roberts
  • 311
  • 1
  • 4
  • 15
3
votes
3 answers

How to convert slope to degrees and vice versa?

I'm making a game where you have a sprite that shoots bullets in the direction of the mouse. So far, it works fine with 1 bullet. I have this method that gets a slope, and then normalizes the vector: public static Vector2f…
user2029675
  • 245
  • 3
  • 9
3
votes
2 answers

How to calculate where bullet hits

I have been trying to write an FPS in C/X11/OpenGL, but the issue that I have encountered is with calculating where the bullet hits. I have used a horrible technique, and it only sometimes works: pos size, p; size.x = 0.1; size.z = 0.1; // Since the…
MiJyn
  • 5,327
  • 4
  • 37
  • 64
2
votes
3 answers

Firing projectile unity 2d

I am trying to make the character fire some waves through the weapon when you click the mouse button, but somehow the waves (projectiles) are not showing in the screen even though the hierarchy shows that its being cloned, I'm new to unity so I dont…
Sha
  • 21
  • 1
2
votes
1 answer

How to make a condition to terminate appending?

I am writing a code to plot several projectile trajectories of various theta values in Python. theta = np.arange(np.pi/6, np.pi/3) t = np.linspace(0,2,num=100) while y0>=0: for i in theta: x = [] y = [] for k in t: …
mnuizhre
  • 169
  • 7
2
votes
2 answers

How to move multiple objects in pygame without affecting the motion of other objects(without delay)

In the code I have simply tried to make two objects move and one shoots. But as soon as one shoots the two stops moving until the bullet has reached the end. Is there a way to shoot bullets and move the rest of the objects at the same time. As the…
2
votes
3 answers

Projectile - use .projectile instead of .gitignore for excluding file from projectile-find-file

I'm using projectile on emacs for managing project files. There are some files which I've put in my .gitignore as they contain my local configuration settings dev/resources/local.edn .dir-locals.el etc. The problem with this is when I use…
2
votes
1 answer

Is there a way to use projectile to specify the compilation directory with a cmake project?

Using the projectile package with emacs in a cmake project, I have a .projectile file in the project root. When I type C-c C-p c, it wants to run "cmake --build ." in the root directory. I'd like it to go to {project root}/build and run cmake. I…
tenspd137
  • 367
  • 1
  • 12
2
votes
0 answers

How to make symlinked git repositories respect their parent project in Projectile?

I'm completely new to spacemacs and emacs in general. I switched to spacemacs from vim in hopes to have better project support for non-"sibling" directories. I am currently working with folders inside an installation of a Source Dedicated Server so…
Xavier B.
  • 21
  • 2
2
votes
1 answer

Projectiles in my ArrayList are not changed individually upon collision, how can I fix this?

I am trying to make a game. I want the projectiles (balls) that I shoot to each have their own individual collisions with objects and the margins of the game screen, but right now when one ball collides with the game screen margins, every balls'…
2
votes
1 answer

Setting flycheck-clang-include-path in .dir-locals using projectile

Trying to set flycheck-clang-include-path without the need to include the full path of the project include directories using projectile, but I get errors... So this works: ((nil . ( (company-clang-arguments . ( …
SFbay007
  • 1,917
  • 1
  • 20
  • 39
1
2
3
16 17