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 ...
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 (...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
processing × 30java × 7
unity × 6
collision-detection × 6
3d × 5
2d × 3
javascript × 3
camera × 3
collision-resolution × 3
physics × 2
transformation × 2
raycasting × 2
loading × 2
file × 2
jbox2d × 2
c# × 1
c++ × 1
opengl × 1
mathematics × 1
animation × 1
rotation × 1
graphics × 1
box2d × 1
tilemap × 1
input × 1