コード例 #1
0
ファイル: PhysxScene.cs プロジェクト: swipswaps/halcyon
        public override PhysicsActor AddAvatar(string avName, OpenMetaverse.Vector3 position, OpenMetaverse.Quaternion rotation, OpenMetaverse.Vector3 size, bool isFlying, OpenMetaverse.Vector3 initialVelocity)
        {
            Commands.CreateCharacterCmd cmd = new Commands.CreateCharacterCmd(size.Z, size.X, position, rotation, isFlying, initialVelocity);
            this.QueueCommand(cmd);

            cmd.FinshedEvent.Wait();
            cmd.Dispose();

            return(cmd.FinalActor);
        }
コード例 #2
0
ファイル: PhysxScene.cs プロジェクト: kf6kjg/halcyon
        public override PhysicsActor AddAvatar(string avName, OpenMetaverse.Vector3 position, OpenMetaverse.Quaternion rotation, OpenMetaverse.Vector3 size, bool isFlying, OpenMetaverse.Vector3 initialVelocity)
        {
            Commands.CreateCharacterCmd cmd = new Commands.CreateCharacterCmd(size.Z, size.X, position, rotation, isFlying, initialVelocity);
            this.QueueCommand(cmd);

            cmd.FinshedEvent.Wait();
            cmd.Dispose();

            return cmd.FinalActor;
        }