Skip to content

Commit

Permalink
chore: clean comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeboy-cn committed Sep 26, 2024
1 parent 52ab9c5 commit c54e7bf
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 68 deletions.
2 changes: 0 additions & 2 deletions src/components/controller/CameraControllerBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export class CameraControllerBase {
*
* Get moving speed
* @returns number
* @version FlyEngine
*/
public get speed(): number {
return this._speed;
Expand All @@ -76,7 +75,6 @@ export class CameraControllerBase {
*
* Set moving speed
* @returns number
* @version FlyEngine
*/
public set speed(val: number) {
this._speed = val;
Expand Down
22 changes: 11 additions & 11 deletions src/core/Camera3D.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ export class Camera3D extends ComponentBase {
*/
public frustum: Frustum;

public sh_bak: Float32Array = new Float32Array([
2.485296, 2.52417, 2.683965, 3.544894,
0.2323964, 0.1813751, 0.08516902, -4.860471E-05,
-0.2744142, -0.04131086, 0.2248164, -0.005996059,
0.1551732, 0.137717, 0.1002693, -0.0006728604,
0.2209381, 0.2109673, 0.1770538, -1.395991E-05,
0.3529238, 0.2824739, 0.1817433, -0.0005164869,
-0.1344275, -0.1289607, -0.1347626, 7.825881E-06,
0.2125785, 0.1779549, 0.124602, 0.000503074,
-0.1039777, -0.09676537, -0.07681116, -0.0004372867,
]);
// public sh_bak: Float32Array = new Float32Array([
// 2.485296, 2.52417, 2.683965, 3.544894,
// 0.2323964, 0.1813751, 0.08516902, -4.860471E-05,
// -0.2744142, -0.04131086, 0.2248164, -0.005996059,
// 0.1551732, 0.137717, 0.1002693, -0.0006728604,
// 0.2209381, 0.2109673, 0.1770538, -1.395991E-05,
// 0.3529238, 0.2824739, 0.1817433, -0.0005164869,
// -0.1344275, -0.1289607, -0.1347626, 7.825881E-06,
// 0.2125785, 0.1779549, 0.124602, 0.000503074,
// -0.1039777, -0.09676537, -0.07681116, -0.0004372867,
// ]);

public sh: Float32Array = new Float32Array(36);

Expand Down
1 change: 0 additions & 1 deletion src/math/MathUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ export class MathUtil {
* @param toDirection The transformed direction
* @param target The calculated quaternion is null by default and the result is returned
* @returns Quaternion The calculated quaternion returns a new instance created if target is null
* @version Orillusion3D 0.5.1
*/
public static fromToRotation(fromDirection: Vector3, toDirection: Vector3, target: Quaternion = null): Quaternion {
target ||= new Quaternion();
Expand Down
Loading

0 comments on commit c54e7bf

Please sign in to comment.