Watch
2
0
Fork
You've already forked raylib-cs
0

BREAKING: Update names of methods, variables, and other elements (#181)

Breaking change to update naming across Raylib-cs to make it more consistent with C# naming conventions.

---------

Co-authored-by: MrScautHD <65916181+MrScautHD@users.noreply.github.com>
This commit is contained in:
Rgebee 2023-08-14 21:33:48 +01:00 committed by GitHub
commit 23ed54cc24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 1282 additions and 1295 deletions

View file

@ -12,17 +12,17 @@ namespace Raylib_cs
/// <summary>
/// Ray position (origin)
/// </summary>
public Vector3 position;
public Vector3 Position;
/// <summary>
/// Ray direction
/// </summary>
public Vector3 direction;
public Vector3 Direction;
public Ray(Vector3 position, Vector3 direction)
{
this.position = position;
this.direction = direction;
this.Position = position;
this.Direction = direction;
}
}
@ -35,21 +35,21 @@ namespace Raylib_cs
/// <summary>
/// Did the ray hit something?
/// </summary>
public CBool hit;
public CBool Hit;
/// <summary>
/// Distance to the nearest hit
/// </summary>
public float distance;
public float Distance;
/// <summary>
/// Point of the nearest hit
/// </summary>
public Vector3 point;
public Vector3 Point;
/// <summary>
/// Surface normal of hit
/// </summary>
public Vector3 normal;
public Vector3 Normal;
}
}