AGK for Pascal
TAgkWeldJoint.Create Constructor (TAgkObject, TAgkSprite, TAgkSprite, TAgkPoint, Boolean)

Creates a weld joint between two sprites. The weld joint attempts to limit all relative movement and rotation between the two sprites.

constructor Create(const Owner: TAgkObject; const Sprite1: TAgkSprite; const Sprite2: TAgkSprite; const Anchor: TAgkPoint; const CollideConnected: Boolean = False); overload;
const Owner: TAgkObject 
the owner of the new joint (eg. a TAgkScene object). 
const Sprite1: TAgkSprite 
The first sprite to join. 
const Sprite2: TAgkSprite 
The second sprite to join. 
const Anchor: TAgkPoint 
The anchor point. 
const CollideConnected: Boolean = False 
(options) whether the two sprites connected by the joint can collide with one another. 

Specify a single anchor point in world coordinates with the sprites already in the desired positions. The joint is not a perfect fixture and given a large enough force the sprites may shift out of position. 

The anchor point can be offset from the sprite center positions. 

A joint may be deleted by the system if any of the sprites it connects are deleted.

Copyright (c) 2012. All rights reserved.