Tagged Questions
2
votes
2answers
111 views
Collision detection against large arbitrarily shaped textures
What is the most effecient way to do collision detection on strangely shaped textures in XNA? Here is an example texture:
As you can see, it is far from a perfect square. I want the player to ...
0
votes
1answer
93 views
XNA 4.0 Plane size
Possibly a dumb question, but do planes stretch on to infinity? I can't define a spanning area for it, and would have to do some sort of check for collisions like if(x intersects BoundingBox and ...
0
votes
1answer
149 views
Creating A Bounding Box around each item in a list XNA 4.0
I have asked a similar question before except i am more experienced and have more understanding of XNA. I have bullets that shoot whenever you press RightTrigger. I am having trouble though creating ...
5
votes
2answers
124 views
How can I normalize a vector if I am handling movment of each axis seperatley?
I am writing a 2D tile based game engine in XNA, and I've recently fine-tuned my collision detection using the answers provided here and more specifically here.
The tile based collision detection now ...
0
votes
1answer
141 views
How to make AABB collisions work? [closed]
I am unable to make efficient AABB collision in XNA 4. I am making a platformer, with tile based map.
Here is what I do in my tile class :
public virtual void Update(GameTime gameTime, ...
0
votes
1answer
98 views
Complex Models using bounding boxes in xna 4
I'm new to XNA, and have just started looking into collision detection.
I've managed to get a bounding sphere around my first person camera object and i want to check the collision between that and ...
0
votes
2answers
142 views
3d to 2d Collision
I have a 3d model which rotates around my screen, it's always on the Z axis = 0 where everything of my 2d images are. My 2d images fly out of the center and get bigger to give the view as getting ...
1
vote
0answers
53 views
Alternate Collision Detection in XNA 4.0
Is there a better more efficent way for collision detection in XNA 4.0 besides Bounding boxes or circles? Like a way that would automatically wrap around the texture regardless of the textures shape.
0
votes
1answer
106 views
3D models and hit detection
I'm currently trying to create a game that involves the inside of a cube, which i will make in Maya. My question is what is the best way to create a model with hit detection in mind?
For example my ...
1
vote
2answers
150 views
Per color collision is really expensive - can my approach be improved?
I've been working on adding a color based collision component which takes a list of colors and checks to see if an object is colliding with any of them. However, the operation seems to be extremely ...
3
votes
2answers
300 views
XNA 4.0 / C# Collision Response
Okay, this is really starting to annoy me.
First of all, detecting collisions is nice and easy. I have a list of tiles,
and a player. The player and each tile have their own rectangles. (The tiles ...
1
vote
1answer
105 views
this.BoundingBox.Intersects(Wall[0].BoundingBox) not working properly
I seem to be having this problem a lot, I'm still learning XNA / C# and well, trying to make a classic paddle and ball game. The problem I run into (and after debugging have no answer) is that ...
1
vote
3answers
372 views
Collision detection doesn't work for automated elements in XNA 4.0
I have a really weird problem. I made a 3D simulator of an "assembly line" as a part of a college project. Among other things it needs to be able to detect when a box object passes in front of sensor. ...
1
vote
2answers
394 views
XNA How to detect collision between 2d sprites and 3d primitives (not models)
My current status:
I have already read some tutorials about 3d collision
I know how ray trace works and how to convert mouse follow a vector to track the closest object that collides with out vector
...
0
votes
1answer
130 views
Binding BoundingSpheres to a world matrix in XNA
I made a program that loads the locations of items on the scene from a file like this:
using (StreamReader sr = new StreamReader(OpenFileDialog1.FileName))
{
...