PulleyJoint class, which connects two bodies to the ground and to each other, when one body rises, the other descends, simulating the behavior of a pulley system.
Whether the component is a singleton, meaning only one instance of this type of script can be added to the same node.
Zh
是否为单例,即同一个节点只能添加此类型的脚本一次。
collideConnected
collideConnected:boolean = false
En
Specifies whether the two connected rigid bodies can collide with each other. Default is false. This setting is effective only on the first assignment.
Zh
[首次设置有效]两个连接的刚体是否可以相互碰撞,默认为 false。
otherAnchor
otherAnchor:any[] = ...
En
The anchor point of the connected body relative to its top-left corner. This setting is effective only on the first assignment.
The connected rigid body. This setting is effective only on the first assignment.
Zh
[首次设置有效]连接到关节的另一个刚体。
otherGroundPoint
otherGroundPoint:any[] = ...
En
The point on the pulley connected to the other anchor, relative to the top-left corner of the connected body. This setting is effective only on the first assignment.
The rigid body that is attached to the joint. This setting is effective only on the first assignment.
Zh
[首次设置有效]与关节相连的自身刚体。
selfGroundPoint
selfGroundPoint:any[] = ...
En
The point on the pulley connected to the self anchor, relative to the top-left corner of the rigid body. This setting is effective only on the first assignment.
Checks if the component has a specific hide flag set.
Zh
检查组件是否设置了特定的隐藏标志。
isValid
isValid(): boolean
返回 boolean
onAdded
onAdded(): void
返回 void
En
Called after the component is added to a node. Unlike Awake, onAdded is called even if the node is not active.
Zh
组件被添加到节点后调用,与 onAwake 不同的是,即使节点未激活也会调用 onAdded。
Blueprint Event
onAwake
onAwake(): void
返回 void
En
Executed after the component is activated. At this point, all nodes and components have been created. This method is executed only once.
Zh
组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次。
Blueprint Event
onDestroy
onDestroy(): void
返回 void
En
Executed when the node is destroyed manually.
Zh
手动调用节点销毁时执行。
Blueprint Event
onDisable
onDisable(): void
返回 void
En
Executed when the component is disabled, such as when the node is removed from the stage.
Zh
组件被禁用时执行,比如从节点从舞台移除后。
Blueprint Event
onEnable
onEnable(): void
返回 void
En
Executed after the component is enabled, such as when the node is added to the stage.
Zh
组件被启用后执行,比如节点被添加到舞台后。
Blueprint Event
可选onLateUpdate
onLateUpdate(): void
返回 void
En
Executed every frame during the late update phase, after the update phase.
Zh
每帧更新时执行,在 late update 阶段,update 阶段之后。
Blueprint Event
可选onPostRender
onPostRender(): void
返回 void
En
Executed after rendering.
Zh
渲染之后执行。
Blueprint Event
可选onPreRender
onPreRender(): void
返回 void
En
Executed before rendering.
Zh
渲染之前执行。
Blueprint Event
可选onReset
onReset(): void
返回 void
En
Resets the component's parameters to their default values. If this function is implemented, the component will be reset and automatically recycled for future use.
If not reset, it will not be recycled for reuse.
En
PulleyJoint class, which connects two bodies to the ground and to each other, when one body rises, the other descends, simulating the behavior of a pulley system.
Zh
滑轮关节:它将两个物体接地(ground)并彼此连接,当一个物体上升,另一个物体就会下降