GetMouseRay redirects to GetScreenToWorldRay
This commit is contained in:
parent
873552f31a
commit
77b59b8ebe
2 changed files with 2 additions and 10 deletions
|
@ -630,11 +630,7 @@ func UnloadShader(shader Shader) {
|
|||
//
|
||||
// Deprecated: Use [GetScreenToWorldRay] instead.
|
||||
func GetMouseRay(mousePosition Vector2, camera Camera) Ray {
|
||||
cmousePosition := mousePosition.cptr()
|
||||
ccamera := camera.cptr()
|
||||
ret := C.GetMouseRay(*cmousePosition, *ccamera)
|
||||
v := newRayFromPointer(unsafe.Pointer(&ret))
|
||||
return v
|
||||
return GetScreenToWorldRay(mousePosition, camera)
|
||||
}
|
||||
|
||||
// GetScreenToWorldRay - Get a ray trace from screen position (i.e mouse)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue