Creates a mouse joint between a point and a sprite. This is typically used when dragging a shape with the mouse pointer, and attempts to move the sprite towards the given point using a force up to the maximum given.
constructor Create(const Owner: TAgkObject; const Sprite: TAgkSprite; const Anchor: TAgkPoint; const MaxForce: Single); overload;
|
Parameters |
Description |
|
const Owner: TAgkObject |
the owner of the new joint (eg. a TAgkScene object). |
|
const Sprite: TAgkSprite |
The sprite to move. |
|
const Anchor: TAgkPoint |
The initial anchor point on the sprite. |
|
const MaxForce: Single |
The maximum force the joint can use to move the sprite. |
Specify an anchor point in world coordinates that will act as the initial hold point on the sprite. Any further change in the target position will attempt to move that point of the sprite to the new location. Use SetTarget to change the location of the target position.
|
Copyright (c) 2012. All rights reserved.
|