- Object
-
- LinkPostProcessor
-
- All Implemented Interfaces:
NarrowphasePostProcessor
public final class LinkPostProcessor extends Object implements NarrowphasePostProcessor
ANarrowphasePostProcessor
specifically for theLink
class to solve the internal edge problem when using a chain of segments.- Since:
- 3.2.2
- Version:
- 3.2.2
- Author:
- Willima Bittle
- See Also:
- Slides 46-54
-
-
Constructor Summary
Constructors Constructor Description LinkPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(Convex convex1, Transform transform1, Convex convex2, Transform transform2, Penetration penetration)
Performs post processing on the narrow-phase collision detection information.void
process(Link link, Transform transform1, Convex convex, Transform transform2, Penetration penetration)
Attempts to use the connectivity information to determine if the normal found in the narrow-phase is valid.
-
-
-
Method Detail
-
process
public void process(Convex convex1, Transform transform1, Convex convex2, Transform transform2, Penetration penetration)
Description copied from interface:NarrowphasePostProcessor
Performs post processing on the narrow-phase collision detection information.- Specified by:
process
in interfaceNarrowphasePostProcessor
- Parameters:
convex1
- the first convex shapetransform1
- the first convex shape's transformconvex2
- the second convex shapetransform2
- the second convex shape's transformpenetration
- the narrow-phase collision detection information
-
process
public void process(Link link, Transform transform1, Convex convex, Transform transform2, Penetration penetration)
Attempts to use the connectivity information to determine if the normal found in the narrow-phase is valid. If not, the normal is modified to within the valid range of normals based on the connectivity and the collision depth is adjusted.- Parameters:
link
- the linktransform1
- the link's transformconvex
- the other convextransform2
- the other convex transformpenetration
- the narrow-phase collision information
-
-