mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-07-02 19:13:43 -04:00
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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user