English 中文(简体)
动物发育——与斜坡地的碰撞处理
原标题:Game development - handling collisions with sloped terrain

我试图说明如何处理与试图绕过坡地的参与者的碰撞。 例如,考虑参与者是否位于半管线的底层,希望离开:

  • At first the player is on the flat and can go directly left
  • At some point the player starts going up a slope, and so needs to go up and left in order to remain on top of the terrain

我应如何处理这一问题?

  • Should try and move the player directly left and see if they have collided with terrain - if they have then work out if I should nudge the players position?
  • Should I try and work out what the terrain to the players left looks like, and determine in advance what height the player should be placed at?
最佳回答

如果你的参与者永远处于“自由陷落”之中,即不会与地面保持接触,那么你首先需要检查碰撞。 (如果你不经常地与表面接触,那么你就掌握了哪些“地形”试图获得“ook”。)

总的来说,我说,我试图首先进行直截,检查碰撞,然后如果你发现碰撞,看看你与这支“法官”部队串通并使用。

问题回答

d 我建议限制地形的垂直变化,使之具有“逐步”的性质。 e. 最多4个餐厅。 那么,除了此以外,还需要“消费”。





相关问题
Collision Detection between Accelerating Spheres

I am writing a physics engine/simulator which incorporates 3D space flight, planetary/stellar gravitation, ship thrust and relativistic effects. So far, it is going very well, however, one thing that ...

Triangle - Triangle Intersection Test

I d like to know if there is out there some tutorial or guide to understand and implement a Triangle-Triangle intersection test in a 3D Environment. (i don t need to know precise where the ...

Simple Problem - Velocity and Collisions

Okay I m working on a Space sim and as most space sims I need to work out where the opponents ship will be (the 3d position) when my bullet reaches it. How do I calculate this from the velocity that ...

OO design and mirrored/duplicated methods

I m having an issue in OO design where I end up with duplicate code in 2 different classes. Here s what s going on: In this example, I want to detect collision between game objects. I have a base ...

avoiding geocode range collisions

I am in the process of extracting location entities ( Madison Square Garden , San Diego Zoo , etc.) from a large table of non-uniform location. I m trying to avoid multiple entities in my new table. ...

Bounding ellipse

I have been given an assignement for a graphics module, one part of which is to calculate the minimum bounding ellipse of a set of arbitrary shapes. The ellipse doesn t have to be axis aligned. This ...

circle-circle collision

I am going to develop a 2-d ball game where two balls (circles) collide. Now I have the problem with determining the colliding point (in fact, determining whether they are colliding in x-axis/y-axis)....

热门标签