- Object
-
- ContactAdapter
-
- All Implemented Interfaces:
ContactListener
,Listener
@Deprecated public class ContactAdapter extends Object implements ContactListener, Listener
Deprecated.Deprecated in 4.0.0. Use the ContactListenerAdapter in the world package instead.Convenience class for implementing theContactListener
interface.- Since:
- 1.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description ContactAdapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
begin(ContactPoint point)
Deprecated.Called when twoBodyFixture
s begin to overlap, generating a contact point.void
end(ContactPoint point)
Deprecated.Called when twoBodyFixture
s begin to separate.boolean
persist(PersistedContactPoint point)
Deprecated.Called when twoBodyFixture
s remain in contact.void
postSolve(SolvedContactPoint point)
Deprecated.Called after contacts have been solved.boolean
preSolve(ContactPoint point)
Deprecated.Called before contact constraints are solved.void
sensed(ContactPoint point)
Deprecated.
-
-
-
Method Detail
-
sensed
@Deprecated public void sensed(ContactPoint point)
Deprecated.Description copied from interface:ContactListener
Called when a contact has been sensed between twoBody
s, where one or bothBody
'sBodyFixture
s are sensors.- Specified by:
sensed
in interfaceContactListener
- Parameters:
point
- the contact point that was sensed
-
begin
public boolean begin(ContactPoint point)
Deprecated.Description copied from interface:ContactListener
Called when twoBodyFixture
s begin to overlap, generating a contact point.- Specified by:
begin
in interfaceContactListener
- Parameters:
point
- the contact point that was added- Returns:
- boolean true if the contact should remain enabled
-
end
public void end(ContactPoint point)
Deprecated.Description copied from interface:ContactListener
Called when twoBodyFixture
s begin to separate.- Specified by:
end
in interfaceContactListener
- Parameters:
point
- the contact point that was removed
-
persist
public boolean persist(PersistedContactPoint point)
Deprecated.Description copied from interface:ContactListener
Called when twoBodyFixture
s remain in contact.- Specified by:
persist
in interfaceContactListener
- Parameters:
point
- the persisted contact point- Returns:
- boolean true if the contact should remain enabled
-
preSolve
public boolean preSolve(ContactPoint point)
Deprecated.Description copied from interface:ContactListener
Called before contact constraints are solved.- Specified by:
preSolve
in interfaceContactListener
- Parameters:
point
- the contact point- Returns:
- boolean true if the contact should remain enabled
-
postSolve
public void postSolve(SolvedContactPoint point)
Deprecated.Description copied from interface:ContactListener
Called after contacts have been solved.- Specified by:
postSolve
in interfaceContactListener
- Parameters:
point
- the contact point that was solved
-
-