B
BerneyTD
Guest
Hi, I'm trying to get a 3D model which i've created (a pr_linelist tetraheadron) to interact with a player object within 2D space, as if the 3D model were actually just a 2D object.
The tetraheadron currently rotates along its y axis, though, in the future it should rotates in all directions, so i cannot just use a 2D animation on an object, I am also planning on using other 3D models in the future once the tetraheadron works.
I came up with 2 different methods for possibly doing this:
1. Use draw_getpixel to check if there is a white pixel in the screen near the player and base collision off of that.
2. Convert the drawn image into a sprite (somehow) and set an obj_tetraheadron's sprite to that - then just use place_meeting(x,y,obj_tetraheadron) for basic 2d collision.
The problems are that method 1 seems extremely inefficient, and im not sure if method 2 is even actually possible.
Is there any way that either of these methods can be pulled of, or is there another method that i am missing?
Thanks,
Berney
The tetraheadron currently rotates along its y axis, though, in the future it should rotates in all directions, so i cannot just use a 2D animation on an object, I am also planning on using other 3D models in the future once the tetraheadron works.
I came up with 2 different methods for possibly doing this:
1. Use draw_getpixel to check if there is a white pixel in the screen near the player and base collision off of that.
2. Convert the drawn image into a sprite (somehow) and set an obj_tetraheadron's sprite to that - then just use place_meeting(x,y,obj_tetraheadron) for basic 2d collision.
The problems are that method 1 seems extremely inefficient, and im not sure if method 2 is even actually possible.
Is there any way that either of these methods can be pulled of, or is there another method that i am missing?
Thanks,
Berney