Box2D: b2MouseJointDef Struct Reference

| Box2D 2.4.1 A 2D physics engine for games

Public Attributes | List of all members
b2MouseJointDef Struct Reference

`#include <b2_mouse_joint.h>`

Inheritance diagram for b2MouseJointDef:

## Public Attributes
b2Vec2 | target
float | maxForce
float | stiffness
| The linear stiffness in N/m.
float | damping
| The linear damping in N*s/m.
Public Attributes inherited from b2JointDef
b2JointType | type
| The joint type is set automatically for concrete joint types.
b2JointUserData | userData
| Use this to attach application specific data to your joints.
b2Body * | bodyA
| The first attached body.
b2Body * | bodyB
| The second attached body.
bool | collideConnected
| Set this flag to true if the attached bodies should collide.

## Detailed Description

Mouse joint definition. This requires a world target point, tuning parameters, and the time step.

## Member Data Documentation

## ◆ maxForce

float b2MouseJointDef::maxForce

The maximum constraint force that can be exerted to move the candidate body. Usually you will express as some multiple of the weight (multiplier * mass * gravity).

## ◆ target

b2Vec2 b2MouseJointDef::target

The initial world target point. This is assumed to coincide with the body anchor initially.

The documentation for this struct was generated from the following file:

- /build/box2d/src/box2d-2.4.1/include/box2d/b2_mouse_joint.h