Creates a gear joint between two existing joints. The gear joint allows appearence of two existing joints to be locked together in perfect friction.
constructor Create(const Owner: TAgkObject; const Joint1: TAgkJoint; const Joint2: TAgkJoint; const Ratio: Single);
Parameters |
Description |
const Owner: TAgkObject |
the owner of the new joint (eg. a TAgkScene object). |
const Joint1: TAgkJoint |
The first joint to join. |
const Joint2: TAgkJoint |
The second joint to join. |
const Ratio: Single |
The gear ratio to use in moving one joint from the other. |
The sprites that will be joined will be sprite 2 on both joints, sprite 1 on both joints must be a static sprite. A joint may be deleted by the system if any of the sprites it connects are deleted. This joint should be deleted before any of the joints it depends on are deleted.
TAgkGearJoint
Copyright (c) 2012. All rights reserved.
|