Skip to content

CollisionDetection: Transform for Geometry instancing #47

@attcs

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

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