- Object
-
- ContactPoint
-
- SolvedContactPoint
-
@Deprecated public class SolvedContactPoint extends ContactPoint
Deprecated.Deprecated in 4.0.0. Use theSolvedContact
interface instead.Represents a solved contact point.A solved contact point is a contact that has been handled by the contact constraint solver and therefore has the normal and tangential impulses computed.
- Since:
- 1.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
- See Also:
ContactPoint
-
-
Constructor Summary
Constructors Constructor Description SolvedContactPoint(ContactConstraint constraint, SolvableContact contact)
Deprecated.Helper constructor for a contact constraint and contact.SolvedContactPoint(ContactPointId id, Body body1, BodyFixture fixture1, Body body2, BodyFixture fixture2, Vector2 point, Vector2 normal, double depth, double normalImpulse, double tangentialImpulse)
Deprecated.Full constructor.SolvedContactPoint(SolvedContactPoint scp)
Deprecated.Copy constructor (shallow).
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description double
getNormalImpulse()
Deprecated.Returns the accumulated normal impulse.double
getTangentialImpulse()
Deprecated.Returns the accumulated tangential impulse.String
toString()
Deprecated.-
Methods inherited from class ContactPoint
getBody1, getBody2, getDepth, getFixture1, getFixture2, getId, getNormal, getPoint, isSensor
-
-
-
-
Constructor Detail
-
SolvedContactPoint
public SolvedContactPoint(ContactPointId id, Body body1, BodyFixture fixture1, Body body2, BodyFixture fixture2, Vector2 point, Vector2 normal, double depth, double normalImpulse, double tangentialImpulse)
Deprecated.Full constructor.- Parameters:
id
- the contact point idbody1
- the firstBody
in contactfixture1
- the firstBody
'sBodyFixture
body2
- the secondBody
in contactfixture2
- the secondBody
'sBodyFixture
point
- the world space contact pointnormal
- the world space contact normaldepth
- the penetration depthnormalImpulse
- the accumulated normal impulsetangentialImpulse
- the accumulated tangential impulse
-
SolvedContactPoint
public SolvedContactPoint(ContactConstraint constraint, SolvableContact contact)
Deprecated.Helper constructor for a contact constraint and contact.- Parameters:
constraint
- the constraintcontact
- the contact
-
SolvedContactPoint
public SolvedContactPoint(SolvedContactPoint scp)
Deprecated.Copy constructor (shallow).- Parameters:
scp
- theSolvedContactPoint
to copy
-
-
Method Detail
-
toString
public String toString()
Deprecated.- Overrides:
toString
in classContactPoint
-
getNormalImpulse
public double getNormalImpulse()
Deprecated.Returns the accumulated normal impulse.- Returns:
- double
-
getTangentialImpulse
public double getTangentialImpulse()
Deprecated.Returns the accumulated tangential impulse.- Returns:
- double
-
-