Closed jakobjung10 closed 1 month ago
If you really want to use raw raylib functions:
import raylib
v = raylib.ffi.new(f"struct Vector2 *", (10,10))
However, I would do it the way that is thoroughly demonstrated for you in the many example programs:
import pyray
v = pyray.Vector2(10,10)
Hi!
How are the raylib-structs in python supposed to be used? In this example: Vector2
Exception has occurred: AttributeError module 'raylib' has no attribute 'Vector2'_