I have an .obj file which the model i want to add, which is stored at:
C:\Users\MTLS\source\python\Models_2-3D models\Triangular_Prism.obj
But when i try to load the model into the entity using this code:
spike_model = r'C:\Users\MTLS\source\python\Models_2-3D models\Triangular_Prism.obj'
class Spike(Entity):
def __init__(self, position = (0, 0, 0)):
super().__init__(
model = spike_model,
texture = 'white_cube',
collider= 'box',
color= color.red,
scale= (1, 1, 1),
position= position
)
spike = Spike()
The entity is only loaded as an invisible entity, i cant see it when i launch the program.
I have followed some tutorials on yt but non of them works
How can i fix this and make the entity become visible? Thanks.