Questions tagged [bounding]

71 questions
0
votes
1 answer

(latitude, longitude) Create a bounding box from a radius

The f I have one pair of latitude and longitude and a radius How can I create a box around this pair based on the radius?
Johny19
  • 5,364
  • 14
  • 61
  • 99
0
votes
1 answer

Cannot calculateBoundingBox() on Model or ModelInstance

I have a small pieace of code that creates a ModelInstance based on the model passed to it etc (Please excuse all unused variables such as w,h,d, they were from a previous test) package com.mygdx.game; import com.badlogic.gdx.Gdx; import…
0
votes
1 answer

Android Bounding Rectangles

I'm trying to make a bounding rectangle around an ImageView for collision detection. Unfortunately, I can only find code for sprites and not ImageViews. Is there a way to make a rectangle that goes outside of an image for an ImageView? One of the…
David Elliott
  • 113
  • 1
  • 3
  • 10
0
votes
1 answer

BoundingSphere Update

Hallo I'm writting little RPG about Ants in XNA 4.0. I have made LoadModel class to fbx model load, and to create bounding spheres. I have one general bounding sphere at the model created by merging model mesh. Now i created model with additional…
user3490530
  • 53
  • 1
  • 7
0
votes
1 answer

KinetikJS Keep bounds while dragging an object

Heyhey, while learning JS and using KineticJS I am stuck with a little problem. As Iam not able to get my own code into a fiddle right now lets take this example: http://jsfiddle.net/m1erickson/n5xMs/ If we make the white rect also draggable: …
ben89
  • 18
  • 4
0
votes
0 answers

XNA 3D custom collision method?

Ok, after 10 hours of digging, I've come to the conclusion XNA really doesn't offer good collision support. Here is my problem.. imagine an apartment building in your game world. Wrap it with a bounding box.. rotate it on the Y axis 45 degrees. Now…
indyz2
  • 1
0
votes
1 answer

OpenStreetMap get latitude and longitude of a generated static map tile

I try to create an open street maps application, which uses self generated static maps. Such a map is composed by up to four tiles, depending on the users position on the base tile. An example: there is a map (red), generated by four tiles…
razon
  • 3
  • 1
  • 5
0
votes
2 answers

How do I get the highest point of a 3D triangle within an AABB?

I am looking to retrieve the highest Y-axis value of a 3D triangle that is in an axis aligned bounding box. This should not necessarily return one of the 3 vertices of the triangle but return the highest point that the AABB would be colliding with.…
0
votes
1 answer

Xna Create BoundingBox Detection Manually?

So I have managed to create and successfully test boundingbox. I have now got all 8 corner points in vector[] corners = new vector[8] and vector[] corners1 = new vector[8] and just wondering what the code would be instead of model.intersect(model1).…
0
votes
0 answers

Contain Window in Canvas

I am wondering if there is a way to spawn a window inside a canvas, setting it's movable boundaries to be inside the Canvas. I figured out how to contain a window's movable range within a window but I cannot figure it out for a panel. If you can use…
mikemags1
  • 797
  • 6
  • 13
-1
votes
1 answer

Minimum bounding rectangle, when 3D shape is not known...only that it fits a 3D matrix?

I've searched for this algorithm, including on stackoverflow, but did not find one. Unlike finding the minimum bounding rectangle for a known 3D figure, I'm trying to find one, axis-aligned, for an arbitrary, solid, continuous, 3D figure...the only…
1 2 3 4
5