예제 #1
0
 public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 size, bool isFlying)
 {
     Vec3 pos = new Vec3();
     pos.X = position.X;
     pos.Y = position.Y;
     pos.Z = position.Z;
     PhysXCharacter act = new PhysXCharacter(scene.AddCharacter(pos));
     act.Flying = isFlying;
     act.Position = position;
     _characters.Add(act);
     return act;
 }
예제 #2
0
        public override PhysicsActor AddAvatar(string avName, PhysicsVector position, PhysicsVector size, bool isFlying)
        {
            Vec3 pos = new Vec3();

            pos.X = position.X;
            pos.Y = position.Y;
            pos.Z = position.Z;
            PhysXCharacter act = new PhysXCharacter(scene.AddCharacter(pos));

            act.Flying   = isFlying;
            act.Position = position;
            _characters.Add(act);
            return(act);
        }