Universe.Physics.BulletSPlugin.BSShapeNative.GetReference C# (CSharp) Method

GetReference() public method

public GetReference ( BSScene pPhysicsScene, BSPhysObject pPrim ) : BSShape
pPhysicsScene BSScene
pPrim BSPhysObject
return BSShape
        public override BSShape GetReference(BSScene pPhysicsScene, BSPhysObject pPrim)
        {
            // Native shapes are not shared so we return a new shape.
            BSShape ret = null;
            lock (physShapeInfo)
            {
                ret = new BSShapeNative(CreatePhysicalNativeShape(pPhysicsScene, pPrim,
                    physShapeInfo.shapeType, (FixedShapeKey) physShapeInfo.shapeKey));
            }
            return ret;
        }

Same methods

BSShapeNative::GetReference ( BSScene physicsScene, BSPhysObject prim, BSPhysicsShapeType shapeType, FixedShapeKey shapeKey ) : BSShape