Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
curvedflats
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Flatland
curvedflats
Commits
746a831e
Commit
746a831e
authored
5 years ago
by
16이진형
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change movement hierarchy
parent
a4c8db3e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
33 deletions
+44
-33
FlatlandMovement.cs
Assets/Scripts/FlatlandMovement.cs
+31
-0
FlatlandMovement.cs.meta
Assets/Scripts/FlatlandMovement.cs.meta
+11
-0
Planemovement.cs
Assets/Scripts/Planemovement.cs
+1
-20
PlayerMovement.cs
Assets/Scripts/PlayerMovement.cs
+1
-13
No files found.
Assets/Scripts/FlatlandMovement.cs
0 → 100644
View file @
746a831e
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
MathNet.Numerics.LinearAlgebra
;
using
MathNet.Numerics.LinearAlgebra.Double
;
public
class
FlatlandMovement
:
MonoBehaviour
{
protected
bool
toggle
=
false
;
protected
bool
grabbed
=
false
;
protected
int
cnt
=
0
;
protected
double
beta
=
0.5f
;
// v/c
public
Vector3
alpha
=
new
Vector3
(
0.1f
,
0.0f
,
0.0f
);
// proper acceleration
public
Vector3
v
;
public
Vector3
orientation
;
public
LevelManager
Levelmanager
;
public
double
gamma
=
1.0f
;
public
double
time
=
0.0f
;
// Start is called before the first frame update
public
GameObject
theobject
;
protected
MatrixBuilder
<
double
>
M
=
Matrix
<
double
>.
Build
;
protected
VectorBuilder
<
double
>
V
=
Vector
<
double
>.
Build
;
}
This diff is collapsed.
Click to expand it.
Assets/Scripts/FlatlandMovement.cs.meta
0 → 100644
View file @
746a831e
fileFormatVersion: 2
guid: 697161109c6537740a60e20ba02dbdf9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
Click to expand it.
Assets/Scripts/Planemovement.cs
View file @
746a831e
...
...
@@ -4,30 +4,11 @@ using UnityEngine;
using
MathNet.Numerics.LinearAlgebra
;
using
MathNet.Numerics.LinearAlgebra.Double
;
public
class
Planemovement
:
MonoBehaviour
public
class
Planemovement
:
FlatlandMovement
{
bool
toggle
=
false
;
bool
grabbed
=
false
;
int
cnt
=
0
;
double
beta
=
0.5f
;
// v/c
Vector3
alpha
=
new
Vector3
(
0.1f
,
0.0f
,
0.0f
);
// proper acceleration
Vector3
v
;
public
LevelManager
Levelmanager
;
public
double
starttime
=
0.0f
;
public
double
gamma
=
1.0f
;
Vector3
orientation
;
double
time
=
0.0f
;
// Start is called before the first frame update
public
GameObject
theobject
;
public
Planemovement
otherclock
;
MatrixBuilder
<
double
>
M
=
Matrix
<
double
>.
Build
;
VectorBuilder
<
double
>
V
=
Vector
<
double
>.
Build
;
void
Start
()
{
//Renderer r = theobject.GetComponent<Renderer>();
...
...
This diff is collapsed.
Click to expand it.
Assets/Scripts/PlayerMovement.cs
View file @
746a831e
...
...
@@ -4,22 +4,10 @@ using UnityEngine;
using
MathNet.Numerics.LinearAlgebra
;
using
MathNet.Numerics.LinearAlgebra.Double
;
public
class
PlayerMovement
:
MonoBehaviour
public
class
PlayerMovement
:
FlatlandMovement
{
//int cnt = 0;
double
beta
=
0.5f
;
// v/c
public
Vector3
alpha
=
new
Vector3
(
0.0f
,
0.0f
,
0.0f
);
// proper acceleration
public
Vector3
v
=
new
Vector3
(
0.0f
,
0.0f
,
0.0f
);
public
double
gamma
=
1.0f
;
public
GameObject
theobject
;
public
Vector3
orientation
=
new
Vector3
(
0.0f
,
0.0f
,
0.0f
);
public
double
time
=
0.0f
;
MatrixBuilder
<
double
>
M
=
Matrix
<
double
>.
Build
;
VectorBuilder
<
double
>
V
=
Vector
<
double
>.
Build
;
bool
isinertial
=
true
;
int
cnt
=
0
;
// Start is called before the first frame update
void
Start
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment