Afficher : Delphi
C++
Préférences d'affichage
FMX.Types3D.TMeshData.RayCastIntersect
De XE2 API Documentation
Delphi
function RayCastIntersect(const Width, Height, Depth: single; const RayPos, RayDir: TVector3D; var Intersection: TVector3D): Boolean;
C++
bool __fastcall RayCastIntersect(const float Width, const float Height, const float Depth, const TVector3D &RayPos, const TVector3D &RayDir, TVector3D &Intersection);
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
| function | public | FMX.Types3D.pas FMX.Types3D.hpp |
FMX.Types3D | TMeshData |
Description
Indique si le rayon donné intersecte la surface 3D désignée par Width, Height et Depth.
RayCastIntersect renvoie aussi les résultats de l'intersection par le biais du paramètre Intersection.