Class CollisionToleranceStrategy.CollisionToleranceStrategyFactory

  • Enclosing class:
    CollisionToleranceStrategy

    public static class CollisionToleranceStrategy.CollisionToleranceStrategyFactory
    extends ExtensionPointCollisionToleranceStrategy
    A factory for a CollisionToleranceStrategy. This factory also defines an
    ExtensionPoint.

    Extensions providing a CollisionToleranceStrategy implementation can extend this factory
    by registering the extension using the id "rw.proximity.CollisionToleranceStrategy".

    Typically one or more of the following CollisionToleranceStrategy types will be
    available:
    - Bullet - rwlibs::proximitystrategies::ProximityStrategyBullet - Bullet Physics
    - PQP - rwlibs::proximitystrategies::ProximityStrategyPQP - Proximity Query Package
    • Constructor Detail

      • CollisionToleranceStrategyFactory

        public CollisionToleranceStrategyFactory​(long cPtr,
                                                 boolean cMemoryOwn)
    • Method Detail

      • getStrategies

        public static vector_s getStrategies()
        Get the available strategies.
        Returns:
        a vector of identifiers for strategies.
      • hasStrategy

        public static boolean hasStrategy​(java.lang.String strategy)
        Check if strategy is available.
        Parameters:
        strategy - [in] the name of the strategy.
        Returns:
        true if available, false otherwise.
      • makeStrategy

        public static CollisionToleranceStrategyPtr makeStrategy​(java.lang.String strategy)
        Create a new strategy.
        Parameters:
        strategy - [in] the name of the strategy.
        Returns:
        a pointer to a new CollisionToleranceStrategy.