Skip to main content
2 votes

How can I check if the mouse hits a quad in 3d, and where it hits it?

This is not a full answer, but these are the general steps to go through to get what you want Create a mouse-viewport ray, this is a line segment that starts from the camera eye position and shoots ...
Jay's user avatar
  • 820
2 votes
Accepted

Reading a Binary File in Unity

Your file is not a binary file. It contains ASCII text, starting "1e"... The value of which is 65 31 in Hex (Little endian encoded), Or 25905 in Decimal. 1e44(ascii)= 34 34 65 31 (hex) = 875849009 (...
JeffUK's user avatar
  • 220
2 votes

Topdown Game Collision Detection

It's hard to tell, but it looks like you are only ever testing for one collision. You need to maintain a list or collection of walls in order to test each one for the collision. That may be why it ...
Dijon's user avatar
  • 21
1 vote

How to implement proportional guidance in 2D

I managed to figure out why my code wasn't working. I had another look at the math in the example I mentioned in my question. Because my initial attempt at the example did not work I consulted another ...
Stephan's user avatar
  • 21
1 vote

Box2D & Processing - Collision location randomly assigned to center point

The comments of DMGregory helped me out. I was using points from the collisions worldManifold, but they do not necessarily contain the exact location of the collision between two particles. I solved ...
wo_ste's user avatar
  • 11
1 vote
Accepted

Ray Caster - How do I fix fish eye effect on side walls?

It appears to me that you're having a problem because you're not doing any ray tracing, you are trying to simplify the "all purpose calculation" into a "specific" calculation that can hit vertical ...
v.oddou's user avatar
  • 2,353
1 vote

Collision Detection For A Maze/Cave

You have a logic problem in your code here if(x>oldx) { x=oldx; x-=2; } if(x<oldx) { x=oldx; x+=2; } The reason why it only works for left and top ...
Arthur's user avatar
  • 143
1 vote
Accepted

How can I check if the mouse hits a quad in 3d, and where it hits it?

Since the comments made clear you're looking for a general solution, I'll describe that process here. Note the code is to show the principle, you will need to translate it to the framework you're ...
Felsir's user avatar
  • 4,097
1 vote
Accepted

How to develop custom Unity graphics?

This is a really broad question. Unity is a very powerful and feature-rich game engine. It provides you with several tools which can help you to create unique procedural graphic effects: Programming ...
Philipp's user avatar
  • 122k
1 vote
Accepted

Why can't I load images in processing.js and let them be dynamic?

You cannot load and use images from other domains with HTML5 canvas. Make sure to serve your images from the same domain/server as your processing code. Alternatively, enable cross origin access on ...
schteppe's user avatar
  • 251
1 vote
Accepted

Importing audiofile into Unity3d gets shown after ending playmode

The comment from DMGregory made me realize that it was the compiler that was processing the new added file. This however only happens outside of playmode and only in the editor. With this came the ...
ploopploop's user avatar
1 vote

Snake game made in processing

I'm not familiar with processing, only with java, but that shouldn't matter. How I'd do it is to have an infinite array (in java an ArrayList) of vectors, each marking a position of a snake tile. ...
Bálint's user avatar
  • 15.1k

Only top scored, non community-wiki answers of a minimum length are eligible