OpenSim.Region.Physics.BulletDotNETPlugin.BulletDotNETScene.AddAvatar C# (CSharp) Method

AddAvatar() public method

public AddAvatar ( string avName, System.Vector3 position, System.Vector3 size, bool isFlying ) : PhysicsActor
avName string
position System.Vector3
size System.Vector3
isFlying bool
return PhysicsActor
        public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 size, bool isFlying)
        {
            BulletDotNETCharacter chr = new BulletDotNETCharacter(avName, this, position, size, avPIDD, avPIDP,
                                                                  avCapRadius, avStandupTensor, avDensity,
                                                                  avHeightFudgeFactor, avMovementDivisorWalk,
                                                                  avMovementDivisorRun);
            try
            {
                m_characters.Add(chr);
                m_charactersLocalID.Add(chr.m_localID, chr);
            }
            catch
            {
                // noop if it's already there
                m_log.Debug("[PHYSICS] BulletDotNet: adding duplicate avatar localID");
            }
            AddPhysicsActorTaint(chr);
            return chr;
        }