• 제목/요약/키워드: Piecewise Circular Curve

검색결과 1건 처리시간 0.021초

Using Piecewise Circular Curves as a 2D Collision Primitive

  • Ollington, Robert
    • 아태비즈니스연구
    • /
    • 제9권2호
    • /
    • pp.1-13
    • /
    • 2018
  • Physics simulation is an important part of many interactive 2D applications and collision detection and response is key component of this simulation. While methods for reducing the number of collision tests that need to be performed has been well researched, methods for performing the final checks with collision primitives have seen little recent development. This paper presents a new collision primitive, the n-arc, constructed from piecewise circular curves or biarcs. An algorithm for performing a collision check between these primitives is presented and compared to a convex polygon primitive. The n-arc is shown to exhibit similar, though slightly slower, performance to a polygon when no collision occurs, but is considerably faster when a collision does occur. The goodness of fit of the new primitive is also compared to a polygon. While the n-arc often gives a looser fit in terms of area, the continuous tangents of the n-arcs makes them a good choice for organic, soft or curved surfaces.

  • PDF