-
- All Superinterfaces:
Shiftable
- All Known Implementing Classes:
DefaultContactManager
,SimpleContactManager
,WarmStartingContactManager
@Deprecated public interface ContactManager extends Shiftable
Deprecated.Deprecated in 4.0.0. No longer needed.MaintainsContactConstraint
s betweenBody
s and notifiesContactListener
s of various events related to the life-cycle of a contact.- Since:
- 3.2.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
clear()
Deprecated.Clears the contact manager.boolean
end(ContactConstraint constraint)
Deprecated.Manually ends the contacts associated with the givenContactConstraint
.int
getContactCount()
Deprecated.Returns the number of contact constraints in the manager.int
getQueueCount()
Deprecated.Returns the number of contact constraints in the queue.void
postSolveNotify(List<ContactListener> listeners)
Deprecated.Notifies the givenContactListener
s of the post-solve event for allContactConstraint
s that reached this stage.void
preSolveNotify(List<ContactListener> listeners)
Deprecated.Notifies the givenContactListener
s of the pre-solve event for allContactConstraint
s that reached this stage.void
queue(ContactConstraint constraint)
Deprecated.Queues a newContactConstraint
to be added to thisContactManager
.void
updateAndNotify(List<ContactListener> listeners, Settings settings)
Deprecated.Updates thisContactManager
with the queuedContactConstraint
s and notifying the givenContactListener
s of the respective events.
-
-
-
Method Detail
-
queue
void queue(ContactConstraint constraint)
Deprecated.Queues a newContactConstraint
to be added to thisContactManager
.The
updateAndNotify(List, Settings)
method should be called after allContactConstraint
s have been queued.- Parameters:
constraint
- theContactConstraint
-
updateAndNotify
void updateAndNotify(List<ContactListener> listeners, Settings settings)
Deprecated.Updates thisContactManager
with the queuedContactConstraint
s and notifying the givenContactListener
s of the respective events.This method does not notify the
ContactListener.preSolve(ContactPoint)
orContactListener.postSolve(SolvedContactPoint)
events.If any
ContactListener
method returns false, the contact will not continue to the next stage. In the event that all the contacts of aContactConstraint
do not continue to the next stage, theContactConstraint
itself will not continue.- Parameters:
listeners
- theContactListener
to notifysettings
- the worldSettings
- See Also:
ContactListener
-
preSolveNotify
void preSolveNotify(List<ContactListener> listeners)
Deprecated.Notifies the givenContactListener
s of the pre-solve event for allContactConstraint
s that reached this stage.If any
ContactListener
method returns false, the contact will not continue to the next stage. In the event that all the contacts of aContactConstraint
do not continue to the next stage, theContactConstraint
itself will not continue.- Parameters:
listeners
- theContactListener
to notify
-
postSolveNotify
void postSolveNotify(List<ContactListener> listeners)
Deprecated.Notifies the givenContactListener
s of the post-solve event for allContactConstraint
s that reached this stage.- Parameters:
listeners
- theContactListener
to notify
-
end
boolean end(ContactConstraint constraint)
Deprecated.Manually ends the contacts associated with the givenContactConstraint
.This method does not call the
ContactListener.end(ContactPoint)
method for the contacts in the givenContactConstraint
.- Parameters:
constraint
- theContactConstraint
- Returns:
- true if the
ContactConstraint
was found
-
clear
void clear()
Deprecated.Clears the contact manager.
-
getQueueCount
int getQueueCount()
Deprecated.Returns the number of contact constraints in the queue.- Returns:
- int
- Since:
- 3.3.0
-
getContactCount
int getContactCount()
Deprecated.Returns the number of contact constraints in the manager.- Returns:
- int
- Since:
- 3.3.0
-
-