-
Notifications
You must be signed in to change notification settings - Fork 4
Demonstration Project
Michael Dyck edited this page Sep 17, 2020
·
2 revisions
- Download the Demonstration Project and open it in Unity
- Open the Demonstration Scene in Unity
- Copy the EvaluationFrameworkUnity folder into the Assets-folder of the demonstration project
The demonstration project simulates a sphere rolling on a plane in horizontal direction. Two scripts are part of the project:
- FollowSphere.cs simply implementing the camera following the sphere
-
Movement.cs implementing the movement of the sphere. The following public variables can be modified to change the sphere's movement:
-
forceXMultiplier
: float variable determining the multiplication of the force continuously pushing the sphere in x-direction -
forceJumpMultiplier
: float variable determining the multiplication of the force pushing the sphere in y-direction impulsively after five seconds -
mass
: int variable determining the (Rigidbody) mass of the sphere
-
Feel free to manually modify the three parameters in the Unity editor to see the effects on the sphere's movement.
The project execution either automatically quits after ten seconds, or as soon as the sphere rolled 100 meters in x-direction.
The goal of this evaluation is to investigate how different forces pushing the Sphere in x- and y-direction, as well as different masses of the Sphere influence the total distance travelled by the Sphere, its highest position during the simulation, etc.
© Siemens AG, 2020
Author: Michael Dyck (m.dyck@gmx.net)