mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* Updated ray tracing code. It's now good enough to use when the XYZ vector components of the scale have a difference of less then 4.5 meters.
* When a new prim is created and raytracing is called for, raytrace from the camera position to the ground in the direction of the Norm(RayEnd - RayStart). * If we got a hit based on our camera, create the new prim at the edge of the prim we hit. * Don't raytrace if the difference between any component of the vector exceeds 4.5meters.
This commit is contained in:
@@ -875,6 +875,13 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
if (vScale.z > radius)
|
||||
radius = vScale.z;
|
||||
|
||||
// the second part of this is the default prim size
|
||||
// once we factor in the aabb of the prim we're adding we can
|
||||
// change this to;
|
||||
// radius = (radius / 2) - 0.01f;
|
||||
//
|
||||
radius = (radius / 2) + (0.5f / 2) - 0.1f;
|
||||
|
||||
//radius = radius;
|
||||
|
||||
float itestPart3 = tmVal4.x + tmVal4.y + tmVal4.z + tmVal5.x + tmVal5.y + tmVal5.z -
|
||||
|
||||
Reference in New Issue
Block a user