本文整理汇总了C#中Body.GetLocalPointToOut方法的典型用法代码示例。如果您正苦于以下问题:C# Body.GetLocalPointToOut方法的具体用法?C# Body.GetLocalPointToOut怎么用?C# Body.GetLocalPointToOut使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Body
的用法示例。
在下文中一共展示了Body.GetLocalPointToOut方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
/// <summary>
/// Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
/// </summary>
public void Initialize(Body bA, Body bB, Vec2 anchor)
{
BodyA = bA;
BodyB = bB;
bA.GetLocalPointToOut(anchor, LocalAnchorA);
bB.GetLocalPointToOut(anchor, LocalAnchorB);
}
示例2: Initialize
/// <summary>
/// Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
/// </summary>
public void Initialize(Body b1, Body b2, Vec2 anchor, Vec2 axis)
{
BodyA = b1;
BodyB = b2;
BodyA.GetLocalPointToOut(anchor, LocalAnchorA);
BodyB.GetLocalPointToOut(anchor, LocalAnchorB);
BodyA.GetLocalVectorToOut(axis, LocalAxisA);
ReferenceAngle = BodyB.Angle - BodyA.Angle;
}
示例3: Initialize
public void Initialize(Body b1, Body b2, Vec2 anchor, Vec2 axis)
{
BodyA = b1;
BodyB = b2;
b1.GetLocalPointToOut(anchor, LocalAnchorA);
b2.GetLocalPointToOut(anchor, LocalAnchorB);
BodyA.GetLocalVectorToOut(axis, LocalAxisA);
}
示例4: Initialize
/// <summary>
/// Initialize the bodies, anchors, and reference angle using a world anchor point.
/// </summary>
/// <param name="bA"></param>
/// <param name="bB"></param>
/// <param name="anchor"></param>
public void Initialize(Body bA, Body bB, Vec2 anchor)
{
BodyA = bA;
BodyB = bB;
BodyA.GetLocalPointToOut(anchor, LocalAnchorA);
BodyB.GetLocalPointToOut(anchor, LocalAnchorB);
ReferenceAngle = BodyB.Angle - BodyA.Angle;
}