载入中...
搜索中...
未找到
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).
类成员变量说明
◆ anchorA
| JointPoint2D eve::physics::Joint2DSettings::anchorA |
◆ anchorB
| JointPoint2D eve::physics::Joint2DSettings::anchorB |
◆ axis
| JointPoint2D eve::physics::Joint2DSettings::axis {1, 0} |
◆ collideConnected
◆ dampingRatio
◆ groundA
| JointPoint2D eve::physics::Joint2DSettings::groundA {-1, 1} |
◆ groundB
| JointPoint2D eve::physics::Joint2DSettings::groundB {1, 1} |
◆ kind
| Joint2DKind eve::physics::Joint2DSettings::kind = Joint2DKind::Revolute |
◆ length
◆ ratio
◆ springHertz
该结构体的文档由以下文件生成:
- src/modules/physics/Joint2D.h