![]() |
Kiwano Engine
v1.2.x
|
滑轮关节参数 更多...
#include <Joint.h>
Public 成员函数 | |
Param (PhysicBodyPtr body_a, PhysicBodyPtr body_b, const Point &anchor_a, const Point &anchor_b, const Point &ground_anchor_a, const Point &ground_anchor_b, float ratio=1.0f) | |
![]() | |
ParamBase (PhysicBody *body_a, PhysicBody *body_b) | |
ParamBase (PhysicBodyPtr body_a, PhysicBodyPtr body_b) | |
Public 属性 | |
Point | anchor_a |
关节在物体A上的作用点 | |
Point | anchor_b |
关节在物体B上的作用点 | |
Point | ground_anchor_a |
物体A对应的滑轮的位置 | |
Point | ground_anchor_b |
物体B对应的滑轮的位置 | |
float | ratio |
滑轮比,关节传动时,滑轮上升和下降的两头的位移比例 | |
![]() | |
PhysicBody * | body_a |
关节连接的物体A | |
PhysicBody * | body_b |
关节连接的物体B | |
bool | collide_connected |
滑轮关节参数