Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SimBaseAnchor"/> class.
 /// </summary>
 /// <param name="world">The <see cref="World" /> in which the instance lives.</param>
 /// <param name="masterObject">The <see cref="SimBase"/> object we are attached to.</param>
 /// <param name="slaveObject">The slave object.</param>
 /// <param name="attachmentPositionalOffset">The attachment offset for the position.</param>
 /// <param name="attachmentRotationalOffset">The attachment offset for the rotation.</param>
 public SimBaseAnchor(World world, SimBase masterObject, SimBase slaveObject, Vector2 attachmentPositionalOffset, float attachmentRotationalOffset)
     : base(world)
 {
     this.masterObject = masterObject;
     this.slaveObject  = slaveObject;
     this.attachmentPositionalOffset = attachmentPositionalOffset;
     this.attachmentRotationalOffset = attachmentRotationalOffset;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SimBaseAnchor"/> class.
 /// </summary>
 /// <param name="world">The <see cref="World" /> in which the instance lives.</param>
 /// <param name="masterObject">The <see cref="SimBase"/> object we are attached to.</param>
 /// <param name="slaveObject">The slave object.</param>
 public SimBaseAnchor(World world, SimBase masterObject, SimBase slaveObject)
     : this(world, masterObject, slaveObject, Vector2.Zero, 0.0f)
 {
 }