Class Info |
|---|
public class Point2PointConstraint extends Component implements Constraint 点对点约束组件。 |
Qualifier and Type | Method Name and Description |
|---|---|
| 获取点对点约束组件的描述符实例。 | |
getNodeA() 获取点对点约束组件连接的节点A。 | |
getNodeB() 获取点对点约束组件连接的节点B。 | |
| 获取以节点A重心为坐标原点的点对点约束组件的中心点位置坐标。 | |
| 获取以节点B重心为坐标原点的点对点约束组件的中心点位置坐标。 | |
getType() 获取约束类型。 | |
void | 设置点对点约束组件连接的节点A。 |
void | 设置点对点约束组件连接的节点B。 |
| 设置以节点A重心为坐标原点的点对点约束组件的中心点位置坐标。 | |
| 设置以节点B重心为坐标原点的点对点约束组件的中心点位置坐标。 |
Method |
|---|
public static Point2PointConstraint.Descriptor descriptor() 获取点对点约束组件描述符实例。 |
Returns
Type | Description |
|---|---|
点对点约束组件描述符实例。 |
Method |
|---|
public Vector3 getPivotA() 获取以节点A重心为坐标原点的点对点约束组件的中心点位置坐标。 |
Returns
Type | Description |
|---|---|
位置坐标。 |
Method |
|---|
public Vector3 getPivotB() 获取以节点B重心为坐标原点的点对点约束组件的中心点位置坐标。 |
Returns
Type | Description |
|---|---|
位置坐标。 |
Method |
|---|
public void setNodeA(Node nodeA) 设置点对点约束组件连接的节点A。 |
Parameters
Name | Description |
|---|---|
nodeA | 点对点约束组件连接的节点A。 |
Method |
|---|
public void setNodeB(Node nodeB) 设置约束组件连接的节点B。 |
Parameters
Name | Description |
|---|---|
nodeB | 点对点约束组件连接的节点B。 |
Method |
|---|
public Point2PointConstraint setPivotA(Vector3 pivotA) 设置以节点A重心为坐标原点的点对点约束组件的中心点位置坐标。 |
Parameters
Name | Description |
|---|---|
pivotA | 位置坐标。 |
Returns
Type | Description |
|---|---|
自身实例。 |
Method |
|---|
public Point2PointConstraint setPivotB(Vector3 pivotB) 设置以节点B重心为坐标原点的点对点约束组件的中心点位置坐标。 |
Parameters
Name | Description |
|---|---|
pivotB | 位置坐标。 |
Returns
Type | Description |
|---|---|
自身实例。 |