Exemple #1
0
 /// <summary>
 /// Attempts to find a scene object under the provided position, while also returning the world position and normal
 /// of the point that was hit.
 /// </summary>
 /// <param name="pointerPos">Position of the pointer relative to the scene camera viewport.</param>
 /// <param name="data">Position and normal on the object surface at the point that was hit.</param>
 /// <param name="ignoreSceneObjects">Optional set of objects to ignore during scene picking.</param>
 /// <returns>The object the pointer is snapping to.</returns>
 internal SceneObject Snap(Vector2I pointerPos, out SnapData data, SceneObject[] ignoreSceneObjects = null)
 {
     return(Internal_Snap(mCachedPtr, ref pointerPos, out data, ignoreSceneObjects));
 }
Exemple #2
0
 private static extern SceneObject Internal_Snap(IntPtr thisPtr, ref Vector2I pointerPos, out SnapData data, SceneObject[] ignoreRenderables);