chrisdill / raylib-cs

C# bindings for raylib, a simple and easy-to-use library to learn videogames programming

Home Page:http://www.raylib.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing Vector3 definition?

danielchasehooper opened this issue · comments

Before submitting a new issue, please verify and check:

  • The issue is specific to Raylib-cs and not raylib
  • I checked there is no similar issue already reported
  • My code has no errors or misuse of Raylib-cs

Issue description

I'm not able to use Vector3, it doest look like it's declared in the bindings anywhere?

Environment

macOS 13.6, Raylib-cs 4.5.0.4

$ dotnet --list-runtimes
Microsoft.AspNetCore.App 7.0.0 [/opt/homebrew/Cellar/dotnet/7.0.100/libexec/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.0 [/opt/homebrew/Cellar/dotnet/7.0.100/libexec/shared/Microsoft.NETCore.App]
$ dotnet --list-sdks
7.0.100 [/opt/homebrew/Cellar/dotnet/7.0.100/libexec/sdk]

Issue screenshot

Screenshot 2023-10-15 at 6 01 53 PM

Code example

namespace HelloWorld;

using Raylib_cs;
using static Raylib_cs.Raylib;
using static Raylib_cs.Raymath;

class Program
{
    public static void Main()
    {
        InitWindow(800, 480, "Hello World");

        Camera3D camera = new();
        camera.position = new Vector3(50.0f, 50.0f, 50.0f);
}
}

Vector3 is defined in System.Numerics

@9ParsonsB Thank you!

I'm new to the c# world - in the future, how should I go about finding where things are defined so that I can using <thing> them? Coming from C, I would typically grep the standard library/3rd party headers, I'm not sure what the equivalent would be for dotnet.