Skip to content

Commit b5da62d

Browse files
committed
updated package number
1 parent 6105c8b commit b5da62d

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

Runtime/Scripts/Util/GameObject/ZOMoveTest.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ public class ZOMoveTest : MonoBehaviour {
1212
// public float _time = 1.0f;
1313

1414
public enum MoveTypeEnum {
15-
RotateRoll,
16-
RotatePitch,
17-
RotateYaw,
15+
RotateRollRight,
16+
RotatePitchForward,
17+
RotateYawRight,
1818
TranslateForward,
1919
TranslateRight,
2020
TranslateUp
2121
}
2222

23-
public MoveTypeEnum _moveType = MoveTypeEnum.RotateRoll;
23+
public MoveTypeEnum _moveType = MoveTypeEnum.RotateRollRight;
2424

2525

2626
private Rigidbody _rigidBody;
@@ -49,13 +49,13 @@ void Update() {
4949
// Update is called once per frame
5050
void FixedUpdate() {
5151
if (_isRunning) {
52-
if (_moveType == MoveTypeEnum.RotateRoll) {
53-
Quaternion rotation = Quaternion.Euler(_startRotationEuler + new Vector3(0, 0, _currentValue));
52+
if (_moveType == MoveTypeEnum.RotateRollRight) {
53+
Quaternion rotation = Quaternion.Euler(_startRotationEuler + new Vector3(0, 0, -_currentValue));
5454
_rigidBody.MoveRotation(rotation);
55-
} else if (_moveType == MoveTypeEnum.RotatePitch) {
55+
} else if (_moveType == MoveTypeEnum.RotatePitchForward) {
5656
Quaternion rotation = Quaternion.Euler(_startRotationEuler + new Vector3(_currentValue, 0, 0));
5757
_rigidBody.MoveRotation(rotation);
58-
} else if (_moveType == MoveTypeEnum.RotateYaw) {
58+
} else if (_moveType == MoveTypeEnum.RotateYawRight) {
5959
Quaternion rotation = Quaternion.Euler(_startRotationEuler + new Vector3(0, _currentValue, 0));
6060
_rigidBody.MoveRotation(rotation);
6161
} else if (_moveType == MoveTypeEnum.TranslateForward) {
@@ -69,7 +69,7 @@ void FixedUpdate() {
6969
_rigidBody.MovePosition(_startPosition + velocity);
7070
}
7171

72-
_currentValue = _currentValue + (_speed * Time.fixedDeltaTime);
72+
_currentValue = _currentValue + (_speed * Time.deltaTime);
7373

7474
if (_currentValue > _minMax.y) {
7575
_isRunning = false;

Samples~/ZeroSimSamples/Scenes/ROSIMUPublish_test.unity

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,7 +2110,7 @@ MonoBehaviour:
21102110
_name: ros.publisher.imu_IMU
21112111
_imuSensor: {fileID: 1753787004}
21122112
_coordinateSystem: 1
2113-
_reverseLinearAccelerations: 1
2113+
_reverseLinearAccelerations: 0
21142114
--- !u!114 &1753787004
21152115
MonoBehaviour:
21162116
m_ObjectHideFlags: 0
@@ -2206,9 +2206,9 @@ MonoBehaviour:
22062206
m_Script: {fileID: 11500000, guid: 1ef77affe836d7c54adde928a35ad253, type: 3}
22072207
m_Name:
22082208
m_EditorClassIdentifier:
2209-
_minMax: {x: 0, y: 1}
2210-
_speed: 2
2211-
_moveType: 4
2209+
_minMax: {x: 0, y: 90}
2210+
_speed: 90
2211+
_moveType: 0
22122212
--- !u!1 &1764802517
22132213
GameObject:
22142214
m_ObjectHideFlags: 0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.fsstudio.zerosim",
3-
"version": "0.0.20",
3+
"version": "0.0.21",
44
"displayName": "ZeroSim",
55
"description": "ZeroSim ROS robotic simulator in Unity.",
66
"unity": "2020.1",

0 commit comments

Comments
 (0)