protected static SnapToSprite ( |
||
spriteRenderer | ||
position | Vector3 | |
snapDistance | float | |
return | Vector3 |
private Vector3 SnapToSprites(Vector3 position) { position = Joint2DEditorBase.SnapToSprite(this.anchorJoint2D.GetComponent <SpriteRenderer>(), position, 0.13f); if (this.anchorJoint2D.connectedBody != null) { position = Joint2DEditorBase.SnapToSprite(this.anchorJoint2D.connectedBody.GetComponent <SpriteRenderer>(), position, 0.13f); } return(position); }