载入中...
搜索中...
未找到
eve::physics::Joint2DSettings结构体 参考

Validated-at-creation joint parameters; all lengths are meters, angles radians. 更多...

#include <Joint2D.h>

Public 属性

Joint2DKind kind = Joint2DKind::Revolute
 
JointPoint2D anchorA
 
JointPoint2D anchorB
 
JointPoint2D axis {1, 0}
 
JointPoint2D groundA {-1, 1}
 
JointPoint2D groundB {1, 1}
 
float length = 1
 
float ratio = 1
 
float springHertz = 0
 
float dampingRatio = 0
 
bool collideConnected = false
 

详细描述

Validated-at-creation joint parameters; all lengths are meters, angles radians.

anchorA/B are body attachment points in world space; revolute/prismatic/wheel/weld use anchorA as their common world anchor. axis is normalized after validation. Distance length must be positive. Pulley ground anchors are fixed world points and ratio > 0. springHertz/dampingRatio configure distance/wheel/weld softness (zero Hertz is rigid).

在文件 Joint2D.h 第 30 行定义.

类成员变量说明

◆ anchorA

JointPoint2D eve::physics::Joint2DSettings::anchorA

在文件 Joint2D.h 第 32 行定义.

◆ anchorB

JointPoint2D eve::physics::Joint2DSettings::anchorB

在文件 Joint2D.h 第 32 行定义.

◆ axis

JointPoint2D eve::physics::Joint2DSettings::axis {1, 0}

在文件 Joint2D.h 第 33 行定义.

◆ collideConnected

bool eve::physics::Joint2DSettings::collideConnected = false

在文件 Joint2D.h 第 37 行定义.

◆ dampingRatio

float eve::physics::Joint2DSettings::dampingRatio = 0

在文件 Joint2D.h 第 36 行定义.

◆ groundA

JointPoint2D eve::physics::Joint2DSettings::groundA {-1, 1}

在文件 Joint2D.h 第 34 行定义.

◆ groundB

JointPoint2D eve::physics::Joint2DSettings::groundB {1, 1}

在文件 Joint2D.h 第 34 行定义.

◆ kind

◆ length

float eve::physics::Joint2DSettings::length = 1

在文件 Joint2D.h 第 35 行定义.

◆ ratio

float eve::physics::Joint2DSettings::ratio = 1

在文件 Joint2D.h 第 35 行定义.

◆ springHertz

float eve::physics::Joint2DSettings::springHertz = 0

在文件 Joint2D.h 第 36 行定义.


该结构体的文档由以下文件生成: