BulletSim: implementation of linkset center-of-mass.
Default off, for the moment, until more testing. Add separate thread and center-of-mass flags to OpenSimDefaults.ini. Clean up comments in OpenSimDefaults.ini.cpu-performance
parent
97698ae311
commit
a65cec3986
|
@ -271,6 +271,8 @@ public sealed class BSLinksetCompound : BSLinkset
|
||||||
// to what they should be as if the root was not in a linkset.
|
// to what they should be as if the root was not in a linkset.
|
||||||
// Not that bad since we only get into this routine if there are children in the linkset and
|
// Not that bad since we only get into this routine if there are children in the linkset and
|
||||||
// something has been updated/changed.
|
// something has been updated/changed.
|
||||||
|
// Have to do the rebuild before checking for physical because this might be a linkset
|
||||||
|
// being destructed and going non-physical.
|
||||||
LinksetRoot.ForceBodyShapeRebuild(true);
|
LinksetRoot.ForceBodyShapeRebuild(true);
|
||||||
|
|
||||||
// There is no reason to build all this physical stuff for a non-physical linkset.
|
// There is no reason to build all this physical stuff for a non-physical linkset.
|
||||||
|
@ -283,28 +285,29 @@ public sealed class BSLinksetCompound : BSLinkset
|
||||||
// Get a new compound shape to build the linkset shape in.
|
// Get a new compound shape to build the linkset shape in.
|
||||||
BSShape linksetShape = BSShapeCompound.GetReference(m_physicsScene);
|
BSShape linksetShape = BSShapeCompound.GetReference(m_physicsScene);
|
||||||
|
|
||||||
// The center of mass for the linkset is the geometric center of the group.
|
|
||||||
// Compute a displacement for each component so it is relative to the center-of-mass.
|
// Compute a displacement for each component so it is relative to the center-of-mass.
|
||||||
// Bullet presumes an object's origin (relative <0,0,0>) is its center-of-mass
|
// Bullet presumes an object's origin (relative <0,0,0>) is its center-of-mass
|
||||||
OMV.Vector3 centerOfMassW = ComputeLinksetCenterOfMass();
|
OMV.Vector3 centerOfMassW = ComputeLinksetCenterOfMass();
|
||||||
|
|
||||||
OMV.Quaternion invRootOrientation = OMV.Quaternion.Normalize(OMV.Quaternion.Inverse(LinksetRoot.RawOrientation));
|
OMV.Quaternion invRootOrientation = OMV.Quaternion.Normalize(OMV.Quaternion.Inverse(LinksetRoot.RawOrientation));
|
||||||
|
OMV.Vector3 origRootPosition = LinksetRoot.RawPosition;
|
||||||
|
|
||||||
// 'centerDisplacementV' is the value to subtract from children to give physical offset position
|
// 'centerDisplacementV' is the vehicle relative distance from the simulator root position to the center-of-mass
|
||||||
OMV.Vector3 centerDisplacementV = (centerOfMassW - LinksetRoot.RawPosition) * invRootOrientation;
|
OMV.Vector3 centerDisplacementV = (centerOfMassW - LinksetRoot.RawPosition) * invRootOrientation;
|
||||||
if (UseBulletSimRootOffsetHack || !BSParam.LinksetOffsetCenterOfMass)
|
if (UseBulletSimRootOffsetHack || !BSParam.LinksetOffsetCenterOfMass)
|
||||||
{
|
{
|
||||||
|
// Zero everything if center-of-mass displacement is not being done.
|
||||||
centerDisplacementV = OMV.Vector3.Zero;
|
centerDisplacementV = OMV.Vector3.Zero;
|
||||||
LinksetRoot.ClearDisplacement();
|
LinksetRoot.ClearDisplacement();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LinksetRoot.SetEffectiveCenterOfMassDisplacement(centerDisplacementV);
|
|
||||||
// The actual center-of-mass could have been set by the user.
|
// The actual center-of-mass could have been set by the user.
|
||||||
centerDisplacementV = LinksetRoot.PositionDisplacement;
|
centerDisplacementV = LinksetRoot.SetEffectiveCenterOfMassDisplacement(centerDisplacementV);
|
||||||
}
|
}
|
||||||
|
|
||||||
DetailLog("{0},BSLinksetCompound.RecomputeLinksetCompound,COM,rootPos={1},com={2},comDisp={3}",
|
DetailLog("{0},BSLinksetCompound.RecomputeLinksetCompound,COM,rootPos={1},com={2},comDisp={3}",
|
||||||
LinksetRoot.LocalID, LinksetRoot.RawPosition, centerOfMassW, centerDisplacementV);
|
LinksetRoot.LocalID, origRootPosition, centerOfMassW, centerDisplacementV);
|
||||||
|
|
||||||
// Add the shapes of all the components of the linkset
|
// Add the shapes of all the components of the linkset
|
||||||
int memberIndex = 1;
|
int memberIndex = 1;
|
||||||
|
@ -321,11 +324,11 @@ public sealed class BSLinksetCompound : BSLinkset
|
||||||
memberIndex++;
|
memberIndex++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get a reference to the shape of the child and add that shape to the linkset compound shape
|
// Get a reference to the shape of the child for adding of that shape to the linkset compound shape
|
||||||
BSShape childShape = cPrim.PhysShape.GetReference(m_physicsScene, cPrim);
|
BSShape childShape = cPrim.PhysShape.GetReference(m_physicsScene, cPrim);
|
||||||
|
|
||||||
// Offset the child shape from the center-of-mass and rotate it to vehicle relative
|
// Offset the child shape from the center-of-mass and rotate it to vehicle relative.
|
||||||
OMV.Vector3 offsetPos = (cPrim.RawPosition - LinksetRoot.RawPosition) * invRootOrientation - centerDisplacementV;
|
OMV.Vector3 offsetPos = (cPrim.RawPosition - origRootPosition) * invRootOrientation - centerDisplacementV;
|
||||||
OMV.Quaternion offsetRot = OMV.Quaternion.Normalize(cPrim.RawOrientation) * invRootOrientation;
|
OMV.Quaternion offsetRot = OMV.Quaternion.Normalize(cPrim.RawOrientation) * invRootOrientation;
|
||||||
|
|
||||||
// Add the child shape to the compound shape being built
|
// Add the child shape to the compound shape being built
|
||||||
|
@ -366,6 +369,7 @@ public sealed class BSLinksetCompound : BSLinkset
|
||||||
// This enables a feature in the C++ code to return the world coordinates of the first shape in the
|
// This enables a feature in the C++ code to return the world coordinates of the first shape in the
|
||||||
// compound shape. This aleviates the need to offset the returned physical position by the
|
// compound shape. This aleviates the need to offset the returned physical position by the
|
||||||
// center-of-mass offset.
|
// center-of-mass offset.
|
||||||
|
// TODO: either debug this feature or remove it.
|
||||||
m_physicsScene.PE.AddToCollisionFlags(LinksetRoot.PhysBody, CollisionFlags.BS_RETURN_ROOT_COMPOUND_SHAPE);
|
m_physicsScene.PE.AddToCollisionFlags(LinksetRoot.PhysBody, CollisionFlags.BS_RETURN_ROOT_COMPOUND_SHAPE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,6 +90,8 @@ public abstract class BSPhysObject : PhysicsActor
|
||||||
PhysBody = new BulletBody(localID);
|
PhysBody = new BulletBody(localID);
|
||||||
PhysShape = new BSShapeNull();
|
PhysShape = new BSShapeNull();
|
||||||
|
|
||||||
|
UserSetCenterOfMassDisplacement = null;
|
||||||
|
|
||||||
PrimAssetState = PrimAssetCondition.Unknown;
|
PrimAssetState = PrimAssetCondition.Unknown;
|
||||||
|
|
||||||
// Default material type. Also sets Friction, Restitution and Density.
|
// Default material type. Also sets Friction, Restitution and Density.
|
||||||
|
@ -180,6 +182,7 @@ public abstract class BSPhysObject : PhysicsActor
|
||||||
Material = (MaterialAttributes.Material)material;
|
Material = (MaterialAttributes.Material)material;
|
||||||
|
|
||||||
// Setting the material sets the material attributes also.
|
// Setting the material sets the material attributes also.
|
||||||
|
// TODO: decide if this is necessary -- the simulator does this.
|
||||||
MaterialAttributes matAttrib = BSMaterials.GetAttributes(Material, false);
|
MaterialAttributes matAttrib = BSMaterials.GetAttributes(Material, false);
|
||||||
Friction = matAttrib.friction;
|
Friction = matAttrib.friction;
|
||||||
Restitution = matAttrib.restitution;
|
Restitution = matAttrib.restitution;
|
||||||
|
|
|
@ -802,6 +802,7 @@ public class BSPrim : BSPhysObject
|
||||||
// isSolid: other objects bounce off of this object
|
// isSolid: other objects bounce off of this object
|
||||||
// isVolumeDetect: other objects pass through but can generate collisions
|
// isVolumeDetect: other objects pass through but can generate collisions
|
||||||
// collisionEvents: whether this object returns collision events
|
// collisionEvents: whether this object returns collision events
|
||||||
|
// NOTE: overloaded by BSPrimLinkable to also update linkset physical parameters.
|
||||||
public virtual void UpdatePhysicalParameters()
|
public virtual void UpdatePhysicalParameters()
|
||||||
{
|
{
|
||||||
if (!PhysBody.HasPhysicalBody)
|
if (!PhysBody.HasPhysicalBody)
|
||||||
|
@ -1532,6 +1533,8 @@ public class BSPrim : BSPhysObject
|
||||||
|
|
||||||
// The physics engine says that properties have updated. Update same and inform
|
// The physics engine says that properties have updated. Update same and inform
|
||||||
// the world that things have changed.
|
// the world that things have changed.
|
||||||
|
// NOTE: BSPrim.UpdateProperties is overloaded by BSPrimLinkable which modifies updates from root and children prims.
|
||||||
|
// NOTE: BSPrim.UpdateProperties is overloaded by BSPrimDisplaced which handles mapping physical position to simulator position.
|
||||||
public override void UpdateProperties(EntityProperties entprop)
|
public override void UpdateProperties(EntityProperties entprop)
|
||||||
{
|
{
|
||||||
// Let anyone (like the actors) modify the updated properties before they are pushed into the object and the simulator.
|
// Let anyone (like the actors) modify the updated properties before they are pushed into the object and the simulator.
|
||||||
|
@ -1567,8 +1570,6 @@ public class BSPrim : BSPhysObject
|
||||||
LastEntityProperties = CurrentEntityProperties;
|
LastEntityProperties = CurrentEntityProperties;
|
||||||
CurrentEntityProperties = entprop;
|
CurrentEntityProperties = entprop;
|
||||||
|
|
||||||
// Note that BSPrim can be overloaded by BSPrimLinkable which controls updates from root and children prims.
|
|
||||||
|
|
||||||
PhysScene.PostUpdate(this);
|
PhysScene.PostUpdate(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,6 +59,7 @@ public class BSPrimDisplaced : BSPrim
|
||||||
// are converted into simulator origin values before being passed to the base
|
// are converted into simulator origin values before being passed to the base
|
||||||
// class.
|
// class.
|
||||||
|
|
||||||
|
// PositionDisplacement is the vehicle relative distance from the root prim position to the center-of-mass.
|
||||||
public virtual OMV.Vector3 PositionDisplacement { get; set; }
|
public virtual OMV.Vector3 PositionDisplacement { get; set; }
|
||||||
|
|
||||||
public BSPrimDisplaced(uint localID, String primName, BSScene parent_scene, OMV.Vector3 pos, OMV.Vector3 size,
|
public BSPrimDisplaced(uint localID, String primName, BSScene parent_scene, OMV.Vector3 pos, OMV.Vector3 size,
|
||||||
|
@ -72,49 +73,77 @@ public class BSPrimDisplaced : BSPrim
|
||||||
// Does not clear the displacement set by the user.
|
// Does not clear the displacement set by the user.
|
||||||
public void ClearDisplacement()
|
public void ClearDisplacement()
|
||||||
{
|
{
|
||||||
SetEffectiveCenterOfMassDisplacement(OMV.Vector3.Zero);
|
if (UserSetCenterOfMassDisplacement.HasValue)
|
||||||
|
PositionDisplacement = (OMV.Vector3)UserSetCenterOfMassDisplacement;
|
||||||
|
else
|
||||||
|
PositionDisplacement = OMV.Vector3.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set this sets and computes the displacement from the passed prim to the center-of-mass.
|
// Set this sets and computes the displacement from the passed prim to the center-of-mass.
|
||||||
// A user set value for center-of-mass overrides whatever might be passed in here.
|
// A user set value for center-of-mass overrides whatever might be passed in here.
|
||||||
// The displacement is in local coordinates (relative to root prim in linkset oriented coordinates).
|
// The displacement is in local coordinates (relative to root prim in linkset oriented coordinates).
|
||||||
|
// Returns the relative offset from the root position to the center-of-mass.
|
||||||
// Called at taint time.
|
// Called at taint time.
|
||||||
public virtual void SetEffectiveCenterOfMassDisplacement(Vector3 centerOfMassDisplacement)
|
public virtual Vector3 SetEffectiveCenterOfMassDisplacement(Vector3 centerOfMassDisplacement)
|
||||||
{
|
{
|
||||||
|
PhysScene.AssertInTaintTime("BSPrimDisplaced.SetEffectiveCenterOfMassDisplacement");
|
||||||
Vector3 comDisp;
|
Vector3 comDisp;
|
||||||
if (UserSetCenterOfMassDisplacement.HasValue)
|
if (UserSetCenterOfMassDisplacement.HasValue)
|
||||||
comDisp = (OMV.Vector3)UserSetCenterOfMassDisplacement;
|
comDisp = (OMV.Vector3)UserSetCenterOfMassDisplacement;
|
||||||
else
|
else
|
||||||
comDisp = centerOfMassDisplacement;
|
comDisp = centerOfMassDisplacement;
|
||||||
|
|
||||||
|
// Eliminate any jitter caused be very slight differences in masses and positions
|
||||||
if (comDisp.ApproxEquals(Vector3.Zero, 0.01f) )
|
if (comDisp.ApproxEquals(Vector3.Zero, 0.01f) )
|
||||||
comDisp = Vector3.Zero;
|
comDisp = Vector3.Zero;
|
||||||
|
|
||||||
DetailLog("{0},BSPrimDisplaced.SetEffectiveCenterOfMassDisplacement,userSet={1},comDisp={2}",
|
DetailLog("{0},BSPrimDisplaced.SetEffectiveCenterOfMassDisplacement,userSet={1},comDisp={2}",
|
||||||
LocalID, UserSetCenterOfMassDisplacement.HasValue, comDisp);
|
LocalID, UserSetCenterOfMassDisplacement.HasValue, comDisp);
|
||||||
if ( comDisp != PositionDisplacement )
|
if ( !comDisp.ApproxEquals(PositionDisplacement, 0.01f) )
|
||||||
{
|
{
|
||||||
// Displacement setting is changing.
|
// Displacement setting is changing.
|
||||||
// The relationship between the physical object and simulated object must be aligned.
|
// The relationship between the physical object and simulated object must be aligned.
|
||||||
PositionDisplacement = comDisp;
|
PositionDisplacement = comDisp;
|
||||||
this.ForcePosition = RawPosition;
|
this.ForcePosition = RawPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return PositionDisplacement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 'ForcePosition' is the one way to set the physical position of the body in the physics engine.
|
||||||
|
// Displace the simulator idea of position (center of root prim) to the physical position.
|
||||||
public override Vector3 ForcePosition
|
public override Vector3 ForcePosition
|
||||||
{
|
{
|
||||||
get { return base.ForcePosition; }
|
get {
|
||||||
|
OMV.Vector3 physPosition = base.ForcePosition;
|
||||||
|
if (PositionDisplacement != OMV.Vector3.Zero)
|
||||||
|
{
|
||||||
|
// If there is some displacement, return the physical position (center-of-mass)
|
||||||
|
// location minus the displacement to give the center of the root prim.
|
||||||
|
OMV.Vector3 displacement = PositionDisplacement * ForceOrientation;
|
||||||
|
DetailLog("{0},BSPrimDisplaced.ForcePosition,get,physPos={1},disp={2},simPos={3}",
|
||||||
|
LocalID, physPosition, displacement, physPosition - displacement);
|
||||||
|
physPosition -= displacement;
|
||||||
|
}
|
||||||
|
return physPosition;
|
||||||
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (PositionDisplacement != OMV.Vector3.Zero)
|
if (PositionDisplacement != OMV.Vector3.Zero)
|
||||||
{
|
{
|
||||||
// The displacement is always relative to the vehicle so, when setting position,
|
// This value is the simulator's idea of where the prim is: the center of the root prim
|
||||||
// the caller means to set the position of the root prim.
|
RawPosition = value;
|
||||||
// This offsets the setting value to the center-of-mass and sends that to the
|
|
||||||
// physics engine.
|
// Move the passed root prim postion to the center-of-mass position and set in the physics engine.
|
||||||
OMV.Vector3 displacedPos = value - (PositionDisplacement * RawOrientation);
|
OMV.Vector3 displacement = PositionDisplacement * RawOrientation;
|
||||||
DetailLog("{0},BSPrimDisplaced.ForcePosition,val={1},disp={2},newPos={3}", LocalID, value, PositionDisplacement, displacedPos);
|
OMV.Vector3 displacedPos = RawPosition + displacement;
|
||||||
base.ForcePosition = displacedPos;
|
DetailLog("{0},BSPrimDisplaced.ForcePosition,set,simPos={1},disp={2},physPos={3}",
|
||||||
|
LocalID, RawPosition, displacement, displacedPos);
|
||||||
|
if (PhysBody.HasPhysicalBody)
|
||||||
|
{
|
||||||
|
PhysScene.PE.SetTranslation(PhysBody, displacedPos, RawOrientation);
|
||||||
|
ActivateIfPhysical(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -143,10 +172,11 @@ public class BSPrimDisplaced : BSPrim
|
||||||
// These physical location must be back converted to be centered around the displaced
|
// These physical location must be back converted to be centered around the displaced
|
||||||
// root shape.
|
// root shape.
|
||||||
|
|
||||||
// The root position is the reported position displaced by the rotated displacement.
|
// Move the returned center-of-mass location to the root prim location.
|
||||||
OMV.Vector3 displacedPos = entprop.Position + (PositionDisplacement * entprop.Rotation);
|
OMV.Vector3 displacement = PositionDisplacement * entprop.Rotation;
|
||||||
DetailLog("{0},BSPrimDisplaced.UpdateProperties,physPos={1},disp={2},newPos={3}",
|
OMV.Vector3 displacedPos = entprop.Position - displacement;
|
||||||
LocalID, entprop.Position, PositionDisplacement, displacedPos);
|
DetailLog("{0},BSPrimDisplaced.UpdateProperties,physPos={1},disp={2},simPos={3}",
|
||||||
|
LocalID, entprop.Position, displacement, displacedPos);
|
||||||
entprop.Position = displacedPos;
|
entprop.Position = displacedPos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -160,10 +160,13 @@ public class BSPrimLinkable : BSPrimDisplaced
|
||||||
protected override void MakeDynamic(bool makeStatic)
|
protected override void MakeDynamic(bool makeStatic)
|
||||||
{
|
{
|
||||||
base.MakeDynamic(makeStatic);
|
base.MakeDynamic(makeStatic);
|
||||||
if (makeStatic)
|
if (Linkset != null) // null can happen during initialization
|
||||||
Linkset.MakeStatic(this);
|
{
|
||||||
else
|
if (makeStatic)
|
||||||
Linkset.MakeDynamic(this);
|
Linkset.MakeStatic(this);
|
||||||
|
else
|
||||||
|
Linkset.MakeDynamic(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Body is being taken apart. Remove physical dependencies and schedule a rebuild.
|
// Body is being taken apart. Remove physical dependencies and schedule a rebuild.
|
||||||
|
|
|
@ -919,54 +919,72 @@
|
||||||
; ## Joint support
|
; ## Joint support
|
||||||
; ##
|
; ##
|
||||||
|
|
||||||
; if you would like physics joints to be enabled through a special naming convention in the client, set this to true.
|
; If you would like physics joints to be enabled through a special naming
|
||||||
; (see NINJA Physics documentation, http://opensimulator.org/wiki/NINJA_Physics)
|
; convention in the client, set this to true.
|
||||||
; default is false
|
; (See NINJA Physics documentation, http://opensimulator.org/wiki/NINJA_Physics)
|
||||||
|
; Default is false
|
||||||
;use_NINJA_physics_joints = true
|
;use_NINJA_physics_joints = true
|
||||||
|
|
||||||
; ##
|
; ##
|
||||||
; ## additional meshing options
|
; ## additional meshing options
|
||||||
; ##
|
; ##
|
||||||
|
|
||||||
; physical collision mesh proxies are normally created for complex prim shapes, and collisions for simple boxes and
|
; Physical collision mesh proxies are normally created for complex prim shapes,
|
||||||
; spheres are computed algorithmically. If you would rather have mesh proxies for simple prims, you can set this to
|
; and collisions for simple boxes and spheres are computed algorithmically.
|
||||||
; true. Note that this will increase memory usage and region startup time. Default is false.
|
; If you would rather have mesh proxies for simple prims, you can set this to
|
||||||
|
; true. Note that this will increase memory usage and region startup time.
|
||||||
|
; Default is false.
|
||||||
;force_simple_prim_meshing = true
|
;force_simple_prim_meshing = true
|
||||||
|
|
||||||
[BulletSim]
|
[BulletSim]
|
||||||
; All the BulletSim parameters can be displayed with the console command "physics get all"
|
; All the BulletSim parameters can be displayed with the console command
|
||||||
; and all are defined in the source file OpenSim/Regions/Physics/BulletSPlugin/BSParam.cs.
|
; "physics get all" and all are defined in the source file
|
||||||
|
; OpenSim/Regions/Physics/BulletSPlugin/BSParam.cs.
|
||||||
|
|
||||||
; There are two bullet physics libraries, bulletunmanaged is the default and is a native c++ dll
|
; There are two bullet physics libraries, bulletunmanaged is the default and is a
|
||||||
; bulletxna is a managed C# dll. They have comparible functionality but the c++ one is much faster.
|
; native c++ dll bulletxna is a managed C# dll. They have comparible functionality
|
||||||
|
; but the c++ one is much faster.
|
||||||
BulletEngine = "bulletunmanaged"
|
BulletEngine = "bulletunmanaged"
|
||||||
; BulletEngine = "bulletxna"
|
; BulletEngine = "bulletxna"
|
||||||
|
|
||||||
; Terrain Implementation
|
; BulletSim can run on its own thread independent of the simulator's heartbeat
|
||||||
TerrainImplementation = 1 ; 0=Heightfield, 1=mesh
|
; thread. Enabling this will nto let the physics engine slow down avatar movement, etc.
|
||||||
; For mesh terrain, the detail of the created mesh. '1' gives 256x256 (heightfield resolution). '2'
|
UseSeparatePhysicsThread = false
|
||||||
; gives 512x512. Etc. Cannot be larger than '4'. Higher magnification uses lots of memory.
|
|
||||||
|
; Terrain implementation can use either Bullet's heightField or BulletSim can build
|
||||||
|
; a mesh. 0=heightField, 1=mesh
|
||||||
|
TerrainImplementation = 1
|
||||||
|
; For mesh terrain, the detail of the created mesh. '1' gives 256x256 (heightfield
|
||||||
|
; resolution). '2' gives 512x512. Etc. Cannot be larger than '4'. Higher
|
||||||
|
; magnification uses lots of memory.
|
||||||
TerrainMeshMagnification = 2
|
TerrainMeshMagnification = 2
|
||||||
|
|
||||||
; Avatar physics height adjustments. http://opensimulator.org/wiki/BulletSim#Adjusting_Avatar_Height
|
; Avatar physics height adjustments.
|
||||||
|
; http://opensimulator.org/wiki/BulletSim#Adjusting_Avatar_Height
|
||||||
AvatarHeightLowFudge = -0.2 ; Adjustment at low end of height range
|
AvatarHeightLowFudge = -0.2 ; Adjustment at low end of height range
|
||||||
AvatarHeightMidFudge = 0.1 ; Adjustment at mid point of avatar height range
|
AvatarHeightMidFudge = 0.1 ; Adjustment at mid point of avatar height range
|
||||||
AvatarHeightHighFudge = 0.1 ; Adjustment at high end of height range
|
AvatarHeightHighFudge = 0.1 ; Adjustment at high end of height range
|
||||||
|
|
||||||
; Default linkset implmentation
|
; Default linkset implmentation
|
||||||
; 'Constraint' uses physics constraints to hold linkset together. 'Compound' builds a compound
|
; 'Constraint' uses physics constraints to hold linkset together. 'Compound'
|
||||||
; shape from the children shapes to create a single physical shape. 'Compound' uses a lot less CPU time.
|
; builds a compound shape from the children shapes to create a single physical
|
||||||
|
; shape. 'Compound' uses a lot less CPU time.
|
||||||
LinkImplementation = 1 ; 0=constraint, 1=compound
|
LinkImplementation = 1 ; 0=constraint, 1=compound
|
||||||
|
|
||||||
|
; If 'true', offset a linkset's origin based on mass of linkset parts.
|
||||||
|
LinksetOffsetCenterOfMass = false
|
||||||
|
|
||||||
; If 'true', turn scuplties into meshes
|
; If 'true', turn scuplties into meshes
|
||||||
MeshSculptedPrim = true
|
MeshSculptedPrim = true
|
||||||
|
|
||||||
; If 'true', force simple prims (box and sphere) to be meshed
|
; If 'true', force simple prims (box and sphere) to be meshed
|
||||||
; If 'false', the Bullet native special case shape is used for square rectangles and even dimensioned spheres
|
; If 'false', the Bullet native special case shape is used for square rectangles
|
||||||
|
; and even dimensioned spheres.
|
||||||
ForceSimplePrimMeshing = false
|
ForceSimplePrimMeshing = false
|
||||||
|
|
||||||
; If 'true', when creating meshes, remove all triangles that have two equal vertexes.
|
; If 'true', when creating meshes, remove all triangles that have two equal vertexes.
|
||||||
; Happens often in sculpties. If turned off, there will be some doorways that cannot be walked through.
|
; Happens often in sculpties. If turned off, there will be some doorways
|
||||||
|
; that cannot be walked through.
|
||||||
ShouldRemoveZeroWidthTriangles = true
|
ShouldRemoveZeroWidthTriangles = true
|
||||||
|
|
||||||
; If 'true', use convex hull definition in mesh asset if present.
|
; If 'true', use convex hull definition in mesh asset if present.
|
||||||
|
|
Loading…
Reference in New Issue