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
a9afa9d3
Commit
a9afa9d3
authored
Aug 19, 2019
by
Chae Ho Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor double click movement bug fix, fix bug with model
parent
3f632d7b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
Test.unity
Assets/Scenes/Test.unity
+3
-3
Constants.cs
Assets/Scripts/Constants.cs
+1
-1
ExtrudedMesh.cs
Assets/Scripts/ExtrudedMesh.cs
+1
-1
FlatlandMovement.cs
Assets/Scripts/FlatlandMovement.cs
+1
-1
No files found.
Assets/Scenes/Test.unity
View file @
a9afa9d3
...
@@ -740,7 +740,7 @@ MonoBehaviour:
...
@@ -740,7 +740,7 @@ MonoBehaviour:
m_Script
:
{
fileID
:
11500000
,
guid
:
d99664edeab700d4ca972d282f99515b
,
type
:
3
}
m_Script
:
{
fileID
:
11500000
,
guid
:
d99664edeab700d4ca972d282f99515b
,
type
:
3
}
m_Name
:
m_Name
:
m_EditorClassIdentifier
:
m_EditorClassIdentifier
:
time
:
0.
02
time
:
0.
1
leaveworldline
:
1
leaveworldline
:
1
---
!u!64
&439858919
---
!u!64
&439858919
MeshCollider
:
MeshCollider
:
...
@@ -1574,7 +1574,7 @@ MonoBehaviour:
...
@@ -1574,7 +1574,7 @@ MonoBehaviour:
m_Script
:
{
fileID
:
11500000
,
guid
:
d99664edeab700d4ca972d282f99515b
,
type
:
3
}
m_Script
:
{
fileID
:
11500000
,
guid
:
d99664edeab700d4ca972d282f99515b
,
type
:
3
}
m_Name
:
m_Name
:
m_EditorClassIdentifier
:
m_EditorClassIdentifier
:
time
:
0.
02
time
:
0.
1
leaveworldline
:
1
leaveworldline
:
1
---
!u!54
&839664888
---
!u!54
&839664888
Rigidbody
:
Rigidbody
:
...
@@ -3226,7 +3226,7 @@ MonoBehaviour:
...
@@ -3226,7 +3226,7 @@ MonoBehaviour:
m_Script
:
{
fileID
:
11500000
,
guid
:
d99664edeab700d4ca972d282f99515b
,
type
:
3
}
m_Script
:
{
fileID
:
11500000
,
guid
:
d99664edeab700d4ca972d282f99515b
,
type
:
3
}
m_Name
:
m_Name
:
m_EditorClassIdentifier
:
m_EditorClassIdentifier
:
time
:
0.
02
time
:
0.
1
leaveworldline
:
1
leaveworldline
:
1
---
!u!64
&1320474665
---
!u!64
&1320474665
MeshCollider
:
MeshCollider
:
...
...
Assets/Scripts/Constants.cs
View file @
a9afa9d3
...
@@ -6,7 +6,7 @@ using MathNet.Numerics.LinearAlgebra.Double;
...
@@ -6,7 +6,7 @@ using MathNet.Numerics.LinearAlgebra.Double;
public
static
class
Constants
public
static
class
Constants
{
{
public
static
double
c
=>
4
;
// speed of light.
public
static
double
c
=>
9
;
// speed of light.
public
static
int
alphatinterval
=>
50
;
public
static
int
alphatinterval
=>
50
;
public
static
double
Gamma
(
double
v
)
public
static
double
Gamma
(
double
v
)
{
{
...
...
Assets/Scripts/ExtrudedMesh.cs
View file @
a9afa9d3
...
@@ -56,7 +56,7 @@ public class ExtrudedMesh : MonoBehaviour
...
@@ -56,7 +56,7 @@ public class ExtrudedMesh : MonoBehaviour
List
<
ExtrudedTrailSection
>
sections
=
new
List
<
ExtrudedTrailSection
>();
List
<
ExtrudedTrailSection
>
sections
=
new
List
<
ExtrudedTrailSection
>();
void
Late
Update
()
void
Fixed
Update
()
{
{
transform
.
SetAsFirstSibling
();
transform
.
SetAsFirstSibling
();
var
position
=
transform
.
position
;
var
position
=
transform
.
position
;
...
...
Assets/Scripts/FlatlandMovement.cs
View file @
a9afa9d3
...
@@ -192,7 +192,7 @@ public class FlatlandMovement : MonoBehaviour
...
@@ -192,7 +192,7 @@ public class FlatlandMovement : MonoBehaviour
var
atmp
=
(
float
)(
v
*
Constants
.
c
);
var
atmp
=
(
float
)(
v
*
Constants
.
c
);
double
[]
vtmp
=
{
((
acceleration
.
x
/
acceleration
.
magnitude
)),
0.0
,
((
acceleration
.
z
/
acceleration
.
magnitude
))
};
double
[]
vtmp
=
{
atmp
*
((
acceleration
.
x
/
acceleration
.
magnitude
)),
0.0
,
atmp
*
((
acceleration
.
z
/
acceleration
.
magnitude
))
};
var
deltavnaive
=
V
.
DenseOfArray
(
vtmp
);
var
deltavnaive
=
V
.
DenseOfArray
(
vtmp
);
double
[]
tmp
=
{
Constants
.
c
*
Constants
.
Gamma
(
deltavnaive
.
L2Norm
()),
double
[]
tmp
=
{
Constants
.
c
*
Constants
.
Gamma
(
deltavnaive
.
L2Norm
()),
...
...
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