-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from tier4/feature/docs
Feature/docs
- Loading branch information
Showing
9 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# NPC Vehicle | ||
|
||
The `NPC Vehicle` is a non-playable vehicle object and used for simulation traffic flows. | ||
|
||
<img src=image_0.png width=500px> | ||
|
||
The following prefab files are placed under `AWSIM\Assets\AWSIM\Prefabs\NPCs\Vehicles` directory. | ||
|
||
<img src="image_1.png" title="Hatchback.prefab" width="130" height="130"> <img src="image_2.png" title="SmallCar.prefab" width="130" height="130"> <img src="image_3.png" title="Taxi.prefab" width="130" height="130"> <img src="image_4.png" title="Truck_2t.prefab" width="130" height="130"> | ||
<img src="image_5.png" title="Van.prefab" width="130" height="130"> | ||
|
||
Supported features: | ||
|
||
- Move inverse kinematically based on `Vector3 position`. | ||
- Rotate inverse kinematically based on `Vector3 rotation`. | ||
|
||
## Sample scene | ||
|
||
The sample scene that simulates the behavior of NPC Vehicle is placed under `AWSIM\Assets\AWSIM\Scenes\Samples` directory. | ||
|
||
## NPC Vehicle control scripts | ||
|
||
`NPCVehicle.cs` script that controls the vehicle's behavior are placed under `AWSIM\Assets\AWSIM\Scripts\NPCs\Vehicles` directory. | ||
|
||
|
||
## NPC Vehicle API | ||
|
||
The following section describes the API of `NPCVehicle.cs` script. | ||
|
||
|API|type|feature| | ||
|:--|:--|:--| | ||
|SetPosition|Vector3|Move the NPC Vehicle so that its x, z coodinates are same as the specified coordinates.| | ||
|SetRotation|Vector3|Rotate the NPC Vehicle so that its yaw becomes equal to the specified one.| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters