-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmob.py
More file actions
21 lines (18 loc) · 743 Bytes
/
mob.py
File metadata and controls
21 lines (18 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from ursina import *
from direct.actor.Actor import Actor
from player import Player
class Mob(Entity):
def __init__(self):
super().__init__(#model='anime',
color= color.peach,
origin_y=0.5,
collider='box',
scale=7,
position = (0,10,20),
double_sided=True,
animation_speed=0.2,
)
def action(self):
self.actor = Actor("mobModel.glb") # change filename to the GLB file
self.actor.reparent_to(self)
self.actor.play("moveForward")