Public Member Functions | Public Attributes | List of all members
b2MouseJointDef Struct Reference

#include <b2_mouse_joint.h>

Inheritance diagram for b2MouseJointDef:
Inheritance graph
[legend]

Public Member Functions

 b2MouseJointDef ()
 
- Public Member Functions inherited from b2JointDef
 b2JointDef ()
 

Public Attributes

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

Detailed Description

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

Definition at line 31 of file b2_mouse_joint.h.

Constructor & Destructor Documentation

◆ b2MouseJointDef()

b2MouseJointDef::b2MouseJointDef ( )
inline

Definition at line 33 of file b2_mouse_joint.h.

Member Data Documentation

◆ damping

float b2MouseJointDef::damping

The linear damping in N*s/m.

Definition at line 55 of file b2_mouse_joint.h.

◆ 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).

Definition at line 49 of file b2_mouse_joint.h.

◆ stiffness

float b2MouseJointDef::stiffness

The linear stiffness in N/m.

Definition at line 52 of file b2_mouse_joint.h.

◆ target

b2Vec2 b2MouseJointDef::target

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

Definition at line 44 of file b2_mouse_joint.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22