File mechanics/src/collision/Contact2dR.hpp

Go to the source code of this file

class Contact2dR : public Lagrangian2d2DR

Public Functions

Contact2dR()
ACCEPT_STD_VISITORS()
virtual void computeh(SiconosVector &q, SiconosVector &z, SiconosVector &y)
virtual void preDelete()
virtual void updateContactPoints(const SiconosVector &pos1, const SiconosVector &pos2, const SiconosVector &normal)

Update this contact point information.

Parameters
  • pos1: Position on ds1 in ds1 frame.

  • pos2: Position on ds2 in ds2 frame (or world frame if ds2=null).

  • normal: Normal in ds2 frame (or world frame if ds2=null).

Public Members

SP::SiconosVector base[2]
SP::SiconosContactor contactor[2]
SP::RigidBody2dDS ds[2]
SP::SiconosShape shape[2]

Private Functions

ACCEPT_SERIALIZATION(Contact2dR)

serialization hooks