Sign in to follow this  
  • entries
    18
  • comments
    19
  • views
    14597

ray casting and printf

Sign in to follow this  
jdaniel

268 views

...fun with printf and the ray equation.


...

Ray origin (players current position): -24.394674 0.000000 8.963964
Normalized Ray vector (direction player wants to move): -0.750111 0.000000 0.661312
Point on plane (a point on this polygon): -105.251305 -131.641800 -105.308907
Normalized plane normal (normal of the polygon): 0.000070 -1.000000 -0.000217
Distance from the coordinate system origin to the plane: 131.657335
There is no intersection.

Ray origin (players current position): -25.219797 0.000000 9.691408
Normalized Ray vector (direction player wants to move): -0.736096 0.000000 0.676877
Point on plane (a point on this polygon): -131.641815 -131.641815 -105.251305
Normalized plane normal (normal of the polygon): -0.000291 -1.000000 0.000000
Distance from the coordinate system origin to the plane: 131.680150
An intersection will occur at 614149.375000 units from the ray's origin.
Point of intersection: -452098.389435 0.000000 415713.071655

Ray origin (players current position): -25.219797 0.000000 9.691408
Normalized Ray vector (direction player wants to move): -0.736096 0.000000 0.676877
Point on plane (a point on this polygon): -131.641815 -131.641815 -105.251305
Normalized plane normal (normal of the polygon): -0.000291 -1.000000 0.000000
Distance from the coordinate system origin to the plane: 131.680150
An intersection will occur at 614149.375000 units from the ray's origin.
Point of intersection: -452098.389435 0.000000 415713.071655

Ray origin (players current position): -25.219797 0.000000 9.691408
Normalized Ray vector (direction player wants to move): -0.736096 0.000000 0.676877
Point on plane (a point on this polygon): -105.251305 -131.641800 -105.308907
Normalized plane normal (normal of the polygon): 0.000070 -1.000000 -0.000217
Distance from the coordinate system origin to the plane: 131.657335
There is no intersection.

Ray origin (players current position): -26.029503 0.000000 10.435972
Normalized Ray vector (direction player wants to move): -0.724172 0.000000 0.689620
Point on plane (a point on this polygon): -131.641815 -131.641815 -105.251305
Normalized plane normal (normal of the polygon): -0.000291 -1.000000 0.000000
Distance from the coordinate system origin to the plane: 131.680150
An intersection will occur at 624261.437500 units from the ray's origin.
Point of intersection: -452098.383125 0.000000 430513.545323

Ray origin (players current position): -26.029503 0.000000 10.435972
Normalized Ray vector (direction player wants to move): -0.724172 0.000000 0.689620
Point on plane (a point on this polygon): -131.641815 -131.641815 -105.251305
Normalized plane normal (normal of the polygon): -0.000291 -1.000000 0.000000
Distance from the coordinate system origin to the plane: 131.680150
An intersection will occur at 624261.437500 units from the ray's origin.
Point of intersection: -452098.383125 0.000000 430513.545323

Ray origin (players current position): -26.029503 0.000000 10.435972
Normalized Ray vector (direction player wants to move): -0.724172 0.000000 0.689620
Point on plane (a point on this polygon): -105.251305 -131.641800 -105.308907
Normalized plane normal (normal of the polygon): 0.000070 -1.000000 -0.000217
Distance from the coordinate system origin to the plane: 131.657335
There is no intersection.

Ray origin (players current position): -26.826092 0.000000 11.194554
Normalized Ray vector (direction player wants to move): -0.704634 0.000000 0.709571
Point on plane (a point on this polygon): -131.641815 -131.641815 -105.251305
Normalized plane normal (normal of the polygon): -0.000291 -1.000000 0.000000
Distance from the coordinate system origin to the plane: 131.680150
An intersection will occur at 641569.562500 units from the ray's origin.
Point of intersection: -452098.407156 0.000000 455250.467820

Ray origin (players current position): -26.826092 0.000000 11.194554
Normalized Ray vector (direction player wants to move): -0.704634 0.000000 0.709571
Point on plane (a point on this polygon): -131.641815 -131.641815 -105.251305
Normalized plane normal (normal of the polygon): -0.000291 -1.000000 0.000000
Distance from the coordinate system origin to the plane: 131.680150
An intersection will occur at 641569.562500 units from the ray's origin.
Point of intersection: -452098.407156 0.000000 455250.467820

Ray origin (players current position): -26.826092 0.000000 11.194554
Normalized Ray vector (direction player wants to move): -0.704634 0.000000 0.709571
Point on plane (a point on this polygon): -105.251305 -131.641800 -105.308907
Normalized plane normal (normal of the polygon): 0.000070 -1.000000 -0.000217
Distance from the coordinate system origin to the plane: 131.657335
There is no intersection.

Ray origin (players current position): -27.601189 0.000000 11.975082
Normalized Ray vector (direction player wants to move): -0.669130 0.000000 0.743145
Point on plane (a point on this polygon): -131.641815 -131.641815 -105.251305
Normalized plane normal (normal of the polygon): -0.000291 -1.000000 0.000000
Distance from the coordinate system origin to the plane: 131.680150
An intersection will occur at 675609.437500 units from the ray's origin.
Point of intersection: -452098.404160 0.000000 502087.743091

Ray origin (players current position): -27.601189 0.000000 11.975082
Normalized Ray vector (direction player wants to move): -0.669130 0.000000 0.743145
Point on plane (a point on this polygon): -131.641815 -131.641815 -105.251305
Normalized plane normal (normal of the polygon): -0.000291 -1.000000 0.000000
Distance from the coordinate system origin to the plane: 131.680150
An intersection will occur at 675609.437500 units from the ray's origin.
Point of intersection: -452098.404160 0.000000 502087.743091

Ray origin (players current position): -27.601189 0.000000 11.975082
Normalized Ray vector (direction player wants to move): -0.669130 0.000000 0.743145
Point on plane (a point on this polygon): -105.251305 -131.641800 -105.308907
Normalized plane normal (normal of the polygon): 0.000070 -1.000000 -0.000217
Distance from the coordinate system origin to the plane: 131.657335
There is no intersection.

Ray origin (players current position): -28.337233 0.000000 12.792542
Normalized Ray vector (direction player wants to move): -0.634730 0.000000 0.772734
Point on plane (a point on this polygon): -131.641815 -131.641815 -105.251305
Normalized plane normal (normal of the polygon): -0.000291 -1.000000 0.000000
Distance from the coordinate system origin to the plane: 131.680150
An intersection will occur at 712224.562500 units from the ray's origin.
Point of intersection: -452098.408297 0.000000 550373.130179

Ray origin (players current position): -28.337233 0.000000 12.792542
Normalized Ray vector (direction player wants to move): -0.634730 0.000000 0.772734
Point on plane (a point on this polygon): -131.641815 -131.641815 -105.251305
Normalized plane normal (normal of the polygon): -0.000291 -1.000000 0.000000
Distance from the coordinate system origin to the plane: 131.680150
An intersection will occur at 712224.562500 units from the ray's origin.
Point of intersection: -452098.408297 0.000000 550373.130179

Ray origin (players current position): -28.337233 0.000000 12.792542
Normalized Ray vector (direction player wants to move): -0.634730 0.000000 0.772734
Point on plane (a point on this polygon): -105.251305 -131.641800 -105.308907
Normalized plane normal (normal of the polygon): 0.000070 -1.000000 -0.000217
Distance from the coordinate system origin to the plane: 131.657335
There is no intersection.

Ray origin (players current position): -29.035435 0.000000 13.642550
Normalized Ray vector (direction player wants to move): -0.604598 0.000000 0.796530
Point on plane (a point on this polygon): -131.641815 -131.641815 -105.251305
Normalized plane normal (normal of the polygon): -0.000291 -1.000000 0.000000
Distance from the coordinate system origin to the plane: 131.680150
An intersection will occur at 747718.500000 units from the ray's origin.
Point of intersection: -452098.401844 0.000000 595594.222113

Ray origin (players current position): -29.035435 0.000000 13.642550
Normalized Ray vector (direction player wants to move): -0.604598 0.000000 0.796530
Point on plane (a point on this polygon): -131.641815 -131.641815 -105.251305
Normalized plane normal (normal of the polygon): -0.000291 -1.000000 0.000000
Distance from the coordinate system origin to the plane: 131.680150
An intersection will occur at 747718.500000 units from the ray's origin.
Point of intersection: -452098.401844 0.000000 595594.222113

...

Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now