Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
brasil:courses:blender_unity:unity:5_the_solar_system [2026/08/27 15:13] – [Ship Controller] yannbrasil:courses:blender_unity:unity:5_the_solar_system [2026/08/27 15:16] (Version actuelle) – [Ship Controller] yann
Ligne 70: Ligne 70:
 Here's the spaceship control script in C#, self-contained (it creates its own InputActions in code, so no separate .inputactions asset is needed — but the Input System package still needs to be installed, and Active Input Handling must be set to "Input System Package (New)" or "Both" in Project Settings > Player). Here's the spaceship control script in C#, self-contained (it creates its own InputActions in code, so no separate .inputactions asset is needed — but the Input System package still needs to be installed, and Active Input Handling must be set to "Input System Package (New)" or "Both" in Project Settings > Player).
 <note tip> <note tip>
-**This code has been generated with Claude AI.** prompt : You are a Unity 3D developer. Write a script that allows a **spaceship to be controlled using the keyboard and mouse**, using the **New Input System package**. The various flight parameters/constants, such as **speed, acceleration, etc.**, must be adjustable through the **Unity Inspector** (i.e., using public variables or `[SerializeField]` fields in the script).+**This code has been generated with Claude AI.**  
 + 
 +//**Prompt :**// You are a Unity 3D developer. Write a script that allows a **spaceship to be controlled using the keyboard and mouse**, using the **New Input System package**. The various flight parameters/constants, such as **speed, acceleration, etc.**, must be adjustable through the **Unity Inspector** (i.e., using public variables or `[SerializeField]` fields in the script).
  
 </note> </note>
Ligne 212: Ligne 214:
  
 What it does What it does
-  * W/S: move forward/backward along the ship's axis. +  * **W/S**: move forward/backward along the ship's axis. 
-  * A/D: strafe left/right. +  * **A/D**: strafe left/right. 
-  * Space / Left Ctrl: move up/down. +  * **Space / Left Ctrl**: move up/down. 
-  * Mouse: pitch and yaw. +  * **Mouse**: pitch and yaw. 
-  * Q/E: roll, with its own acceleration. +  * **Q/E**: roll, with its own acceleration. 
-  * All speed/acceleration settings are public fields visible in the Inspector.+  * **All speed/acceleration settings** are public fields visible in the Inspector.
  
  
brasil/courses/blender_unity/unity/5_the_solar_system.1787836434.txt.gz · Dernière modification : de yann
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0