MCPcopy Create free account
hub / github.com/carbonengine/trinity / PickInfinity

Method PickInfinity

trinity/Eve/EveSpaceScene.cpp:4035–4046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4033}
4034
4035Vector3 EveSpaceScene::PickInfinity( int x, int y, Matrix proj, Matrix view )
4036{
4037 float xp, yp;
4038 gTriDev->ScreenToProjection( x, y, &xp, &yp );
4039
4040 // Get the startpoint in world coordinates and pick ray
4041 Vector3 dir;
4042 Vector3 startWorld;
4043 ConvertProjectionCoordToWorldPickRay( xp, yp, &proj, &view, &startWorld, &dir );
4044
4045 return dir;
4046}
4047
4048void EveSpaceScene::UpdateSceneFromScript( Be::Time time )
4049{

Callers

nothing calls this directly

Calls 2

ScreenToProjectionMethod · 0.80

Tested by

no test coverage detected