Skip to content

CollisionDetection: Transform for Geometry instancing #47

Open

Description

@attcs
// leftTransformation/rightTransformation transform the trees into a common coordinate system (e.g., Global)
static std::vector<std::pair<TEntityID, TEntityID>> CollisionDetection(
  OrthoTreeBoundingBox const& leftTree, 
  TContainer const& leftBoxes, 
  OrthoTreeBoundingBox const& rightTree, 
  TContainer const& rightBoxes,
  std::optional<TTransformation> leftTransformation, = std::nullopt  
  std::optional<TTransformation> rightTransformation = std::nullopt
) noexcept;

std::vector<std::pair<TEntityID, TEntityID>> CollisionDetection(
  TContainer const& boxes, 
  OrthoTreeBoundingBox const& otherTree, 
  TContainer const& otherBoxes, 
  std::optional<TTransformation> otherToThisTransformation = std::nullopt
) const noexcept;

This may require extending the basic adaptor interface.
InternalGeometryModule should be extended with the AABB IGM::Box transformation (OBB: IGM::ObjectBox).
AABB vs OBB: Separating Axis Theorem

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions