Skip to content

Add Binary Partition structure #13

@yuripourre

Description

@yuripourre

Octree structure where you can insert, remove and check collision between meshes.

E.g.: Moving Sphere/Capsule:
bsp.check(Vector3 oldPosition, Vector3 newPosition, radius);

Dynamic size is a must. If a triangle point or a particule is outside the root node (AABB) we need a bigger node. Recreate the tree.

Code can be found at propan-storage

  • Insert Vector3
  • Find Vector3
  • Add a dynamic size tree
  • Use gdx Bounding Box
    BB.intersect(bb) could be slower (don't use it).
  • Create a triangle class
  • Add Triangle to libgdx
  • Calculate normal in constructor
  • Port the intersection algorithm
  • Update Intersector?
  • Test it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions