| Parameter | Description |
|---|---|
| chains | The chains to set ownership for. |
| owner | The object that owns this key. Whilst it is valid to not specify an owner object (NULL), it is recommended for debugging purposes. |
| ownerKey | The owner key to be used. The value must be non-zero. You can use PhysicsWorld.CreateOwnerKey for this value although any non-zero integer will work. |
void The owner key assigned.
Set the owner object using the specified owner key. You can only set the owner once, multiple attempts will produce a warning. This call does not bind the lifetime of the specified owner object, it is simply a reference. Whilst it is valid to not specify an owner object (NULL), it is recommended for debugging purposes.
| Parameter | Description |
|---|---|
| owner | The object that owns this key. This can be NULL if not required but is recommended as the key is formed in part by the hash-code of the owner object. |
| ownerKey | The owner key to be used. If zero then a new owner key is created. You can use PhysicsWorld.CreateOwnerKey for this value although any non-zero integer will work. |
void The owner key assigned.
Set the owner object using the specified owner key. You can only set the owner once, multiple attempts will produce a warning. This call does not bind the lifetime of the specified owner object, it is simply a reference. It is also valid to not specify an owner object (NULL) to simply gain an owner key however it can be useful, if simply for debugging purposes and discovery, to know which object is the owner.
| Parameter | Description |
|---|---|
| owner | The object that owns this key. This can be NULL if not required but is recommended as the key is formed in part by the hash-code of the owner object. |
int The owner key assigned.
Set the owner object using the specified owner key. You can only set the owner once, multiple attempts will produce a warning. This call does not bind the lifetime of the specified owner object, it is simply a reference. It is also valid to not specify an owner object (NULL) to simply gain an owner key however it can be useful, if simply for debugging purposes and discovery, to know which object is the owner.