Skip to content

Commit

Permalink
Merge pull request #95 from space928/clickable_plane_demo
Browse files Browse the repository at this point in the history
 + Update Paths
  • Loading branch information
amathieson committed Jan 21, 2024
2 parents 0dfd8ec + 8f1e032 commit 7b054e3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions OmsiHook/docs/articles/examples/clickable-plane-demo.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Clickable Plane Demo

This article provides a basic understanding to a basic C# .NET example leveraging the OMSIHook library. This demo is a more advanced
demo using a specially made mesh (available [here](/doc-resources/ClickablePlaneDemo/_touch_surface.o3d)) and some of the model data properties to paint onto a script texture.
demo using a specially made mesh (available [here](https://adam.mathieson.dev/_touch_surface.o3d)) and some of the model data properties to paint onto a script texture.

_This article is in direct relation to the Sample Project available [here](https://github.com/space928/Omsi-Extensions/tree/main/_OmsiHookExamples/ClickablePlaneDemo)._

![Paint Demo](/images/Paint-demo.png)
![Paint Demo](https://adam.mathieson.dev/Paint-demo.png)

## Coordinate calculation
To achieve the click detection, the global mouse events are monitored, a ray is cast from the cursor onto the plane, it's intersection is computed and converted into a local coordinate space.
Expand Down
Binary file not shown.
3 changes: 1 addition & 2 deletions OmsiHook/docs/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
"resource": [
{
"files": [
"images/**",
"doc-resources/**"
"images/**"
]
}
],
Expand Down
Binary file removed OmsiHook/docs/images/Paint-demo.png
Binary file not shown.

0 comments on commit 7b054e3

Please sign in to comment.