-
Notifications
You must be signed in to change notification settings - Fork 514
Picking
This lesson covers performing picking in 3D.
First create a new project using the instructions from the first two lessons: The basic game loop and Adding the DirectX Tool Kit which we will use for this lesson.
UNDER CONSTRUCTION
You can find an older tutorial on 3D picking using ray/object tests at Rastertek that uses the deprecated D3DXMath library. Note that instead of a 'roll your own' RaySphereIntersect
you can use BoundingSphere from DirectXCollision.h
with the following method to do the ray-sphere test:
bool Intersects(FXMVECTOR Origin, FXMVECTOR Direction, float& Dist) const;
Next lesson: Mixing SimpleMath and DirectXMath
All content and source code for this package are subject to the terms of the MIT License.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
- Universal Windows Platform apps
- Windows desktop apps
- Windows 11
- Windows 10
- Windows 8.1
- Xbox One
- x86
- x64
- ARM64
- Visual Studio 2022
- Visual Studio 2019 (16.11)
- clang/LLVM v12 - v18
- MinGW 12.2, 13.2
- CMake 3.20