Click or drag to resize

ILinkCableJoint.StartPhysicalHead Method

Attaches the source to the specified physical object (a connector head).

Namespace:  KASAPIv2
Assembly:  KAS-API-v2 (in KAS-API-v2.dll) Version: KAS API v2
Syntax
C#
void StartPhysicalHead(
	ILinkSource source,
	Transform headObjAnchor
)
Request Example View Source

Parameters

source
Type: KASAPIv2.ILinkSource
The source object that owns the head.
headObjAnchor
Type: UnityEngine.Transform
The transform at the head object to attach the cable to. It's also used as a starting point to find the rigidbody.
Remarks
The cable maximum length will be set to the actual distance between the source and the physical object. Note, that this method must not be used to create a regular link between the source and target.
See Also