Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 20 Mar 2012
Offline Last Active Oct 08 2012 07:46 AM

Topics I've Started

Collision Response with multiple objects

07 October 2012 - 12:06 PM

I hava a 3d map consisting out of triangles and player with a collision sphere.
it looks a bit like this:
I've Managed to reslove collisions with just one triangle.

But i don't get it to resolve with multple objects, the sphere sinks in the floor time to time when i just resolve every MTV.

So how can i make it right?

Collision with polygon or Polyeder

30 August 2012 - 09:41 AM

There's something i don't understand about collision:

When i want to detect a collision between a polyeder (obstacle) and a sphere(Player), do i have to check collision between the Sphere and the polyeder(Sep. Axis th. 3d) or between the sphere and every face of the polyeder?

bullet hole calculating

27 July 2012 - 07:59 AM

i think the title explains it pretty good:
i want to make a function that takes the player position(start of the bullet path,vector)and the bullets direction, loops through all the Objects(thetrahedrons) and returns the Vectors Position and angle of the BUllet decal.

although I have a fairly understanding of 3D geometry, i Have no Idea how i should solve it, expecialy the position in the thetrahedral.

Get overclass attributes

17 July 2012 - 01:46 PM

To describe my Problem I have to expand a little:

I wrote a game all of whose Objects(Timers,Inventory-Itemens, Walls, Trees...) are classes based on a subclass calleg gobject.
The classes which are direct in the world(Trees, Players, Walls) are also based on a class called wobject which is based on gobject.
always when an Object is created it gets automaticly added to a huge array of gobject pointers.
The trick here is, that that even the most unimportant object has a virtual handle function, which is called on a big loop, that calls every handle for each pointer in the array.
For example if the Player has an Item in his inventory, that automaticly heals him, I can write this in the virtual function of the class autopotion.
but the Problem is, for example in the collision detection, I have to acess Attributes like height, width and position.

How can I acess this attributes form the Pointer-Array?

Resolve Collision

09 July 2012 - 04:20 PM

Ok I finally figured out how to use SAT 3d

But how can i resolve the collision.

I first wantet to just reset the last step at a collision, but that seams unnatural.

Does anyone have a better Idea?