28 using System.Collections.Generic;
30 using OMV = OpenMetaverse;
32 namespace OpenSim.Region.PhysicsModule.BulletS
64 collisionType = CollisionType.Static;
70 public virtual bool HasPhysicalBody {
get {
return false; } }
78 return physicsScene.PE.SetCollisionGroupMask(
this,
79 BulletSimData.CollisionTypeMasks[collisionType].group,
80 BulletSimData.CollisionTypeMasks[collisionType].mask);
84 public virtual string AddrString
86 get {
return "unknown"; }
91 StringBuilder buff =
new StringBuilder();
93 buff.Append(ID.ToString());
95 buff.Append(AddrString);
97 buff.Append(collisionType);
99 return buff.ToString();
107 shapeType = BSPhysicsShapeType.SHAPE_UNKNOWN;
109 isNativeShape =
false;
116 public virtual bool HasPhysicalShape {
get {
return false; } }
125 public virtual string AddrString
127 get {
return "unknown"; }
132 StringBuilder buff =
new StringBuilder();
134 buff.Append(AddrString);
136 buff.Append(shapeType.ToString());
138 buff.Append(shapeKey.ToString(
"X"));
140 buff.Append(isNativeShape.ToString());
142 return buff.ToString();
153 public virtual bool HasPhysicalConstraint {
get {
return false; } }
156 public virtual string AddrString
158 get {
return "unknown"; }
171 terrainRegionBase = OMV.Vector3.Zero;
172 minCoords =
new OMV.Vector3(100f, 100f, 25f);
173 maxCoords =
new OMV.Vector3(101f, 101f, 26f);
218 public static class BulletSimData
229 public static Dictionary<CollisionType, CollisionTypeFilterGroup> CollisionTypeMasks
230 =
new Dictionary<CollisionType, CollisionTypeFilterGroup>()
232 { CollisionType.Avatar,
237 { CollisionType.PhantomToOthersAvatar,
242 { CollisionType.Groundplane,
248 { CollisionType.Terrain,
253 { CollisionType.Static,
258 { CollisionType.Dynamic,
263 { CollisionType.VolumeDetect,
268 { CollisionType.LinksetChild,
BulletWorld(uint worldId, BSScene bss)
CollisionTypeFilterGroup(CollisionType t, uint g, uint m)
override string ToString()
virtual BulletShape Clone()
BulletHMapInfo(uint id, float[] hm, float pSizeX, float pSizeY)
virtual bool ReferenceSame(BulletShape xx)
virtual bool ApplyCollisionMask(BSScene physicsScene)
CollisionType collisionType
override string ToString()
OMV.Vector3 terrainRegionBase
BSPhysicsShapeType shapeType