目录

Generic6DOFConstraint

Class Info

public class Generic6DOFConstraint extends Component implements Constraint

通用6自由度约束组件。

Public Method Summary

Qualifier and Type

Method Name and Description

static Generic6DOFConstraint.Descriptor

descriptor()

获取通用6自由度约束组件描述符实例。

Vector3

getAngularLowerLimit()

获取角度位移下限。

Vector3

getAngularUpperLimit()

获取角度位移上限。

Vector3

getFramePositionInA()

获取节点A相对约束点的位置坐标。

Vector3

getFramePositionInB()

获取节点B相对约束点的位置坐标。

Quaternion

getFrameRotationInA()

获取节点A相对约束点的旋转四元数。

Quaternion

getFrameRotationInB()

获取节点B相对约束点的旋转四元数。

Vector3

getLinearLowerLimit()

获取线性位移下限。

Vector3

getLinearUpperLimit()

获取线性位移上限。

Node

getNodeA()

获取通用6自由度约束组件的节点A。

Node

getNodeB()

获取通用6自由度约束组件的节点B。

Constraint.Type

getType()

获取约束类型。

Generic6DOFConstraint

setAngularLowerLimit(Vector3 value)

设置角度位移下限。

Generic6DOFConstraint

setAngularUpperLimit(Vector3 value)

设置角度位移上限。

Generic6DOFConstraint

setFramePositionInA(Vector3 framePositionInA)

设置节点A相对约束点的位置坐标。

Generic6DOFConstraint

setFramePositionInB(Vector3 framePositionInB)

设置节点B相对约束点的位置坐标。

Generic6DOFConstraint

setFrameRotationInA(Quaternion frameRotationInA)

设置节点A相对约束点的旋转四元数。

Generic6DOFConstraint

setFrameRotationInB(Quaternion frameRotationInB)

设置节点B相对约束点的旋转四元数。

Generic6DOFConstraint

setLinearLowerLimit(Vector3 value)

设置线性位移下限。

Generic6DOFConstraint

setLinearUpperLimit(Vector3 value)

设置线性位移上限。

void

setNodeA(Node nodeA)

设置通用6自由度约束组件的节点A。

void

setNodeB(Node nodeB)

设置通用6自由度约束组件的节点B。

Public Methods

[h2]descriptor

Method

public static Generic6DOFConstraint.Descriptor descriptor()

获取通用6自由度约束组件描述符实例。

Returns

Type

Description

Generic6DOFConstraint.Descriptor

通用6自由度约束组件描述符实例。

[h2]getAngularLowerLimit

Method

public Vector3 getAngularLowerLimit()

获取角度位移下限。

Returns

Type

Description

Vector3

角度位移下限。

[h2]getAngularUpperLimit

Method

public Vector3 getAngularUpperLimit()

获取角度位移上限。

Returns

Type

Description

Vector3

角度位移上限。

[h2]getFramePositionInA

Method

public Vector3 getFramePositionInA()

获取节点A相对约束点的位置坐标。

Returns

Type

Description

Vector3

位置坐标。

[h2]getFramePositionInB

Method

public Vector3 getFramePositionInB()

获取节点B相对约束点的位置坐标。

Returns

Type

Description

Vector3

位置坐标。

[h2]getFrameRotationInA

Method

public Quaternion getFrameRotationInA()

获取节点A相对约束点的旋转四元数。

Returns

Type

Description

Quaternion

旋转四元数。

[h2]getFrameRotationInB

Method

public Quaternion getFrameRotationInB()

获取节点B相对约束点的旋转四元数。

Returns

Type

Description

Quaternion

旋转四元数。

[h2]getLinearLowerLimit

Method

public Vector3 getLinearLowerLimit()

获取线性位移下限。

Returns

Type

Description

Vector3

线性位移下限。

[h2]getLinearUpperLimit

Method

public Vector3 getLinearUpperLimit()

获取线性位移上限。

Returns

Type

Description

Vector3

线性位移上限。

[h2]getNodeA

Method

public Node getNodeA()

获取通用6自由度约束组件的节点A。

Returns

Type

Description

Node

通用6自由度约束组件的节点A。

[h2]getNodeB

Method

public Node getNodeB()

获取通用6自由度约束组件的节点B。

Returns

Type

Description

Node

通用6自由度约束组件的节点B。

[h2]getType

Method

public Constraint.Type getType()

获取约束类型。

Returns

Type

Description

Constraint.Type

约束类型。

[h2]setAngularLowerLimit

Method

public Generic6DOFConstraint setAngularLowerLimit(Vector3 value)

设置角度位移下限。

Parameters

Name

Description

value

角度位移下限。

Returns

Type

Description

Generic6DOFConstraint

自身实例。

[h2]setAngularUpperLimit

Method

public Generic6DOFConstraint setAngularUpperLimit(Vector3 value)

设置角度位移上限。

Parameters

Name

Description

value

角度位移上限。

Returns

Type

Description

Generic6DOFConstraint

自身实例。

[h2]setFramePositionInA

Method

public Generic6DOFConstraint setFramePositionInA(Vector3 framePositionInA)

设置节点A相对约束点的位置坐标。

Parameters

Name

Description

framePositionInA

位置坐标。

Returns

Type

Description

Generic6DOFConstraint

自身实例。

[h2]setFramePositionInB

Method

public Generic6DOFConstraint setFramePositionInB(Vector3 framePositionInB)

设置节点B相对约束点的位置坐标。

Parameters

Name

Description

framePositionInB

位置坐标。

Returns

Type

Description

Generic6DOFConstraint

自身实例。

[h2]setFrameRotationInA

Method

public Generic6DOFConstraint setFrameRotationInA(Quaternion frameRotationInA)

设置节点A相对约束点的旋转四元数。

Parameters

Name

Description

frameRotationInA

旋转四元数。

Returns

Type

Description

Generic6DOFConstraint

自身实例。

[h2]setFrameRotationInB

Method

public Generic6DOFConstraint setFrameRotationInB(Quaternion frameRotationInB)

设置节点B相对约束点的旋转四元数。

Parameters

Name

Description

frameRotationInB

旋转四元数。

Returns

Type

Description

Generic6DOFConstraint

自身实例。

[h2]setLinearLowerLimit

Method

public Generic6DOFConstraint setLinearLowerLimit(Vector3 value)

设置线性位移下限。

Parameters

Name

Description

value

线性位移下限。

Returns

Type

Description

Generic6DOFConstraint

自身实例。

[h2]setLinearUpperLimit

Method

public Generic6DOFConstraint setLinearUpperLimit(Vector3 value)

设置线性位移上限。

Parameters

Name

Description

value

线性位移上限。

Returns

Type

Description

Generic6DOFConstraint

自身实例。

[h2]setNodeA

Method

public void setNodeA(Node nodeA)

设置通用6自由度约束组件的节点A。

Parameters

Name

Description

nodeA

通用6自由度约束组件的节点A。

[h2]setNodeB

Method

public void setNodeB(Node nodeB)

设置通用6自由度约束组件的节点B。

Parameters

Name

Description

nodeB

通用6自由度约束组件的节点B。