1 | <?php |
||
30 | class ColladaModel extends Entity implements ColladaModelInterface |
||
31 | { |
||
32 | use MeshAttributes; |
||
33 | |||
34 | /** |
||
35 | * Init <a-box> |
||
36 | * |
||
37 | * The box primitive, formerly called <a-cube>, creates shapes such as boxes, cubes, or walls. |
||
38 | * It is an entity that prescribes the geometry with its geometric primitive set to box. |
||
39 | * |
||
40 | * {@inheritdoc} |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | 3 | public function init() |
|
48 | |||
49 | /** |
||
50 | * Set defaults |
||
51 | * |
||
52 | * {@inheritdoc} |
||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | 3 | public function defaults() |
|
60 | |||
61 | /** |
||
62 | * Rotation component |
||
63 | * |
||
64 | * {@inheritdoc} |
||
65 | * |
||
66 | * @param int|float $roll |
||
67 | * @param int|float $pitch |
||
68 | * @param int|float $yaw |
||
69 | * @return Entity |
||
70 | */ |
||
71 | 3 | public function rotation(float $roll = 0, float $pitch = 0, float $yaw = 0): Entity |
|
76 | |||
77 | /** |
||
78 | * Scale component |
||
79 | * |
||
80 | * {@inheritdoc} |
||
81 | * |
||
82 | * @param int|float $scale_x |
||
83 | * @param int|float $scale_y |
||
84 | * @param int|float $scale_z |
||
85 | * @return Entity |
||
86 | */ |
||
87 | 3 | public function scale(float $scale_x = 1, float $scale_y = 1, float $scale_z = 1): Entity |
|
92 | |||
93 | /** |
||
94 | * ColladaModel.src |
||
95 | * |
||
96 | * @param null|string $src |
||
97 | * @return ColladaModelInterface |
||
98 | */ |
||
99 | 3 | public function src(string $src = null): ColladaModelInterface |
|
105 | } |
||
106 |